<html><head>? <title></title><script type="text/javascript">?var time=parseInt(document.getElementById("num").innerHTML);function change(){? time--;? while(time==0){? location.replace("http://baidu.com");}}setInterval("change()",1000);</script></head><body><h1>操作成功</h1><span id="num" >5</span>秒后回到主頁? <a href="www.baidu.com">返回</a></body></html>奇怪,明明我已經(jīng)用parseInt轉(zhuǎn)化為整形了,為什么還是不能運算呢
剛遇到有個問題
朝花bu夕拾
2016-08-17 17:09:57