<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<script src="bofang/jquery-1.10.2.min.js"></script>
</head>
<body>
<dd id="time" style="text-align:center;"></dd>
</body>
<script type="text/javascript">
$(function () {
shownum();
});
var i =4;
function shownum(){
i=i-1;
document.getElementById("time").innerHTML=i+"秒后返回调解列表......";
if(i==0){
alert(1111)
}else {
setTimeout('shownum()',1000);
}
}
</script>
</html>
转载于:https://www.cnblogs.com/libo199374/p/7591013.html