问大神,这么写为何不行?
<body>
<H4>操作成功</H4>
<p>
<b id="second">5</b>秒后回到主页
</p>
<script type="text/javascript">
var i = document.getElementById("second").innerHTML;
function num(){
i--;
}
setInterval(num,1000);
</script>
</body>
<body>
<H4>操作成功</H4>
<p>
<b id="second">5</b>秒后回到主页
</p>
<script type="text/javascript">
var i = document.getElementById("second").innerHTML;
function num(){
i--;
}
setInterval(num,1000);
</script>
</body>
2017-02-03
举报