<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<h2>操作成功</h2>
<p><strong id = "count">5</strong>秒后返回</p>
<script type="text/javascript">
var num=5;
function startCount() {
document.getElementById("count").value=num;
num=num-1;
setTimeout("startCount()",1000);
}
</script>
</body>
</html>
为什么不会进行倒计时呢???
紫焰123
开拓者OS
相关分类