亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

幫我看看代碼,沒效果

<!DOCTYPE html>
<html>
?<head>
? <title>瀏覽器對象</title> ?
? <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
? <style type="text/css">
????? h4{font-weight:bold;
????? color:red;
????? }
? </style>
?</head>
?<body>
? <!--先編寫好網頁布局-->
? <h4>操作成功</h4>
? <input type=text id="shu"/>
? <input type=button value="返回" onclick="myfunction()" />
? <script type="text/javascript"> ?
? var num=5;
? function daoshu()
? {
??? ?
????? document.getElementById("shu").value=num+"秒回到主頁";
????? num--;
????? setTimeOut("daoshu()",1000);
?????? if(num==1)
????? {
????????? window.open("http://www.xianlaiwan.cn","_blank");
????? }
? }
???? setTimeOut("daoshu()",1000);
?? //獲取顯示秒數的元素,通過定時器來更改秒數。
??? function myfunction(){
??????? window.history.back();
??? }
?? //通過window的location和history對象來控制網頁的跳轉。
? ?
?</script>
</body>
</html>

正在回答

1 回答

setTimeout ? ? ? ? ? ? ? ? ? ? ? ? o 小寫

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

幫我看看代碼,沒效果

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號