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

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

我的代碼這樣寫有什么問題嗎,為什么不對(duì)?

<!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 open=confirm("是否打開窗口?")

? ? ? ? if(open==true)

? ? ? ? {var url=prompt("通過輸入對(duì)話框,確定打開的網(wǎng)址","http://idcbgp.cn");

? ? ? ? if(url!=null){window.open(url,"_blank""width:400,height:500,menubar=no,toolbar=no");}

? ? ? ? else{alert("再見!");}

? ? ? ? }

? ? ? ? else{alert("再見!");}

? ? ? ? }

? ??

? ??

? </script>?

?</head>?

?<body>?

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

?</body>

</html>


正在回答

2 回答

open==true ?是一個(gè)等號(hào) ?

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

龍蝦瞎不瞎 提問者

恩,謝謝了:)
2015-12-02 回復(fù) 有任何疑惑可以回復(fù)我~
#2

Im陳小旭 回復(fù) 龍蝦瞎不瞎 提問者

回答錯(cuò)了。。。應(yīng)該是那個(gè)_blank后面少了一個(gè)逗號(hào)
2015-12-03 回復(fù) 有任何疑惑可以回復(fù)我~

你的代碼中錯(cuò)誤很多,我改好了,你復(fù)制,粘貼運(yùn)行一下看看吧

<!DOCTYPE?html>
<html>
?<head>
??<title>?new?document?</title>??
??<meta?http-equiv="Content-Type"?content="text/html;?charset=UTF-8"/>???
??<script?type="text/javascript">??
????function?openWindow(){
????????var?open=confirm("是否打開窗口?")
????????if(open==true){
??????????var?url=prompt("通過輸入對(duì)話框,確定打開的網(wǎng)址","http://idcbgp.cn")
????????}
????????if(url!=null){
??????????window.open(url,"_blank","width:400,height:500,menubar=no,toolbar=no");
????????}
????????else{alert("再見!");}
??}
??</script>?
?</head>?
?<body>?
?<input?type="button"?value="新窗口打開網(wǎng)站"?onclick="openWindow()"?/>?
?</body>
</html>



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

龍蝦瞎不瞎 提問者

和我的哪里不一樣?怎么感覺一樣
2015-11-27 回復(fù) 有任何疑惑可以回復(fù)我~
#2

慕男嬸 回復(fù) 龍蝦瞎不瞎 提問者

你挺相信你的感覺的
2015-11-27 回復(fù) 有任何疑惑可以回復(fù)我~
#3

龍蝦瞎不瞎 提問者 回復(fù) 慕男嬸

....你能不能告訴我到底哪里錯(cuò)了,具體點(diǎn)
2015-11-27 回復(fù) 有任何疑惑可以回復(fù)我~
#4

慕男嬸 回復(fù) 龍蝦瞎不瞎 提問者

都是一些語法錯(cuò)誤,這兒少了一個(gè) } ,哪兒少了一個(gè) ( 之類的。都是粗心的錯(cuò)誤。。你把兩端代碼放在一起,對(duì)比一下就知道了。
2015-11-27 回復(fù) 有任何疑惑可以回復(fù)我~
查看1條回復(fù)

舉報(bào)

0/150
提交
取消

我的代碼這樣寫有什么問題嗎,為什么不對(duì)?

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

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

幫助反饋 APP下載

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

公眾號(hào)

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