不能自减?
不能自减啊,然后就不造怎么了
2015-03-07
<body onload="count()"> 操作成功 <br> <span id="time">5</span>s后回到主页 <a href="javascript:back()">返回</a> <script type="text/javascript"> var num= document.getElementById("time").innerHTML; function count() { num--; document.getElementById("time").innerHTML=num; if(num==0){ location.assign("http://www.imooc.com/code/1633"); } } setInterval("count()",1000); function back(){ document.write(window.history.back()); } </script>
举报