第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

求助,大家可以幫忙看一下嗎?效果就是出不來呀!


<!DOCTYPE html>

<html>

?<head>

? <title>瀏覽器對(duì)象</title>??

? <meta http-equiv="Content-Type" content="text/html; charset=gkb"/>? ?

? <style>

? ? ? a{color:blue;text-decoration:underline;}

? </style>

?</head>

?<body>?

? <!--先編寫好網(wǎng)頁布局-->

??

?<h3>操作成功</h3>

<p><span id="s">5</span>秒后回到主頁&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a herf="javascript:tiaozhuan()">返回</a></p>

? <script type="text/javascript">??

? ?var num=5;

? ?var t= setInterval( function sub(){

? ? ? ? num--;

? ? ? ? document.getElementById("s").innerHTML=num;

? ? ? ? if(num==0){

? ? ? ? ? window.location.href("http://idcbgp.cn");?

? ? ? ? ? clearInterval(t);

? ?}

? ?},1000);

? ?

? ? ? function tiaozhuan(){

? ? ? ?window.location.back();

? ?}

? ? ?}

? ?//獲取顯示秒數(shù)的元素,通過定時(shí)器來更改秒數(shù)。

? ?

? ?//通過window的location和history對(duì)象來控制網(wǎng)頁的跳轉(zhuǎn)。

? ?

?</script>?

</body>

</html>


正在回答

4 回答

把window.location.href("http://idcbgp.cn");
?應(yīng)改為location.href("http://idcbgp.cn");

0 回復(fù) 有任何疑惑可以回復(fù)我~

把window.location.href改為window.location.assign

0 回復(fù) 有任何疑惑可以回復(fù)我~

同學(xué)們我的時(shí)間減的又正常了,只是在0秒時(shí)不跳轉(zhuǎn)了

0 回復(fù) 有任何疑惑可以回復(fù)我~

找到問題了,多了一個(gè)大括號(hào)。然后又又新的問題了,時(shí)間一直在減。。。。https://img1.sycdn.imooc.com//5c5e8214000170d602510127.jpg

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消

求助,大家可以幫忙看一下嗎?效果就是出不來呀!

我要回答 關(guān)注問題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)