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

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

編程訓(xùn)練為啥不好使,大神幫我看看

<!DOCTYPE html>

<html>

?<head>

? <title> new document </title> ?

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

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

? function openWindow()

? var newtage=confirm("是否打開(kāi)網(wǎng)該網(wǎng)址?");

? ? if(newtage==true)

? ? ?{var needtage=prompt("輸入網(wǎng)址","http://idcbgp.cn/");}

? ? if(needtage!=null)

? ? ?{window.open("needtage","_blank","width=400px,height=500px,menubar=no,toolbar=no")}

? ? else

? ? ? {alert(thanks)}

? </script>?

?</head>?

?<body>?

?<input type="button" value="新窗口打開(kāi)網(wǎng)站" onclick="openWindow()" />?

?</body>

</html>


正在回答

1 回答

<!DOCTYPE HTML>

<html>

?<head>

? <title> new document </title> ?

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

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

? ? function openWindow()

? ? {

? ? ? if(confirm("是否打開(kāi)網(wǎng)該網(wǎng)址?"))

? ? ? {

? ? ? ? ? ? var needtage = prompt("輸入網(wǎng)址", "http://idcbgp.cn/");

? ? ? ? ? ? if(needtage!=null)

? ? ? ? ? ? ?window.open("needtage","_blank","width=400px,height=500px,menubar=no,toolbar=no");

? ? ? ? ? ? else

? ? ? ? ? ? ? alert("thanks");

? ? ? }

? ? }

? </script>?

?</head>?

?<body>?

?<input type="button" value="新窗口打開(kāi)網(wǎng)站" onclick="openWindow()" />?

?</body>

</html>?


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

本大慕王 提問(wèn)者

大佬啊,這個(gè)的確好使,但是我摁·取消,沒(méi)有對(duì)話(huà)框彈出了,如果我想保留我那個(gè),我應(yīng)該改哪個(gè)啊
2017-07-06 回復(fù) 有任何疑惑可以回復(fù)我~
#2

wqChen 回復(fù) 本大慕王 提問(wèn)者

"沒(méi)有對(duì)話(huà)框彈出了"是指哪個(gè)對(duì)話(huà)框?
2017-07-06 回復(fù) 有任何疑惑可以回復(fù)我~
#3

wqChen 回復(fù) 本大慕王 提問(wèn)者

如果是thanks那個(gè)對(duì)話(huà)框的話(huà) 改成下面的就可以了 if(needtage!=null) window.open(needtage,"_blank","width=400px,height=500px,menubar=no,toolbar=no"); //else // alert("thanks");
2017-07-06 回復(fù) 有任何疑惑可以回復(fù)我~
#4

本大慕王 提問(wèn)者

非常感謝!
2017-07-06 回復(fù) 有任何疑惑可以回復(fù)我~
查看1條回復(fù)

?if(newtage==true)

? ? ?{var needtage=prompt("輸入網(wǎng)址","http://idcbgp.cn/");}

? ? if(needtage!=null)

? ? ?{window.open("needtage","_blank","width=400px,height=500px,menubar=no,toolbar=no")}

? ? else

? ? ? {alert(thanks)}

沒(méi)有if,if,else這種寫(xiě)法,

?var newtage=confirm("是否打開(kāi)網(wǎng)該網(wǎng)址?");

? ? if(newtage==true)

?{window.open("http://idcbgp.cn/","_blank","width=400px,height=500px,menubar=no,toolbar=no")}

? else

? ? ? {alert(“thanks”)}


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

舉報(bào)

0/150
提交
取消

編程訓(xùn)練為啥不好使,大神幫我看看

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

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

幫助反饋 APP下載

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

公眾號(hào)

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