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

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

數(shù)字就是不跳轉(zhuǎn)

源代碼:

<!DOCTYPE html>
<html>
?<head>
? <title>瀏覽器對(duì)象</title> ?
? <meta http-equiv="Content-Type" content="text/html; charset=gkb"/>? ?
?</head>
?<body>
? <!--先編寫好網(wǎng)頁布局-->
? <h2>操作成功</h2>
?<span id="second">5</span>
?秒后回到主頁
? <a href="javascript:bac();">返回</a>

? <script type="text/javascript"> ?
?? function set(){
??? var num=document.getElementById("second").innerHTML;
?????? num--;
?????? document.getElementById("second").innerHTML=num;
?? if(num==0){
????? window.location.assign("idcbgp.cn");
?? }
?? }
?? setInterval("set()",1000);
?? //獲取顯示秒數(shù)的元素,通過定時(shí)器來更改秒數(shù)。
?? //通過window的location和history對(duì)象來控制網(wǎng)頁的跳轉(zhuǎn)。
?? function bac{
?????? window.history.back();
?? }
?</script>
</body>
</html>

正在回答

3 回答

我的數(shù)字也不會(huì)動(dòng),代碼和你的基本一樣

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

?window.location.assign("idcbgp.cn");URL的格式不對(duì),應(yīng)該改成這樣window.location.assign("http://idcbgp.cn/");定義函數(shù)時(shí),少了一對(duì)括號(hào);

0 回復(fù) 有任何疑惑可以回復(fù)我~
<!DOCTYPE?html>
<html>
<head>
????<title>瀏覽器對(duì)象</title>
????<meta?http-equiv="Content-Type"?content="text/html;?charset=utf-8"/>
</head>
<body>
<!--先編寫好網(wǎng)頁布局-->
<h2>操作成功</h2>
<span?id="second">5</span>
秒后回到主頁
<a?href="javascript:bac();">返回</a>

<script?type="text/javascript">
????function?set(){
????????var?num=document.getElementById("second").innerHTML;
????????num--;
????????document.getElementById("second").innerHTML=num;
????????if(num==0){
????????????window.location.assign("http://idcbgp.cn");
????????}
????}
????setInterval("set()",1000);
????//獲取顯示秒數(shù)的元素,通過定時(shí)器來更改秒數(shù)。
????//通過window的location和history對(duì)象來控制網(wǎng)頁的跳轉(zhuǎn)。
????function?bac(){
????????window.history.back();
????}
</script>
</body>
</html>
0 回復(fù) 有任何疑惑可以回復(fù)我~
#1

weibo_任_無憂_0 提問者

不是網(wǎng)站鏈接的問題,是數(shù)字沒有動(dòng)態(tài)跳轉(zhuǎn)
2015-11-29 回復(fù) 有任何疑惑可以回復(fù)我~
#2

李曉健 回復(fù) weibo_任_無憂_0 提問者

看我的代碼26行 然后和你的對(duì)應(yīng)的比較一下,看看你是不是少了點(diǎn)什么。
2015-11-29 回復(fù) 有任何疑惑可以回復(fù)我~
#3

weibo_任_無憂_0 提問者 回復(fù) 李曉健

沒有少什么呀
2015-11-30 回復(fù) 有任何疑惑可以回復(fù)我~
#4

李曉健 回復(fù) weibo_任_無憂_0 提問者

bac 后面少 ( )
2015-11-30 回復(fù) 有任何疑惑可以回復(fù)我~
#5

吾愛吾師 回復(fù) weibo_任_無憂_0 提問者

()括號(hào)啊,朋友
2015-12-05 回復(fù) 有任何疑惑可以回復(fù)我~
查看2條回復(fù)

舉報(bào)

0/150
提交
取消

數(shù)字就是不跳轉(zhuǎn)

我要回答 關(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)