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

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

為什么錯誤?

為什么錯誤?

function?openit()
?????{window.open('http://idcbgp.cn/','_blank','width?=?400,height=500,menubar=no,toolbar=no');}
????????
function?openWindow()
?????{
????????var?open=confirm('確定是否打開http://idcbgp.cn/?');
????????
????????if(open==ture)
????????????{
????????????????var?open2=prompt('確定打開下列網(wǎng)址?','http://idcbgp.cn');
????????????????
????????????????if(open2==ture)
????????????????????{openit();}
????????????????else
????????????????????{alert("再見!");}
????????????}
????????else
????????????{alert("再見!");}
????????}


正在回答

3 回答

繼續(xù)繼續(xù)-。-,試完了function openWindow(){
??? if(confirm("確定是否打開http://idcbgp.cn/?")){
??? var open = prompt("確定打開下列網(wǎng)址?","http://idcbgp.cn");
??? if(open==true){
??? window.open(open,"_blank","width=400,height=500,menubar=no,toolbar=no");
???? }
??? else alert("再見!");
?}

??????? else alert("再見!");
}
? 可以這樣, if(open==true){w~~~~~?? w前面不能有空格。。。。 有空格true起不了作用 具體不懂解析 有沒大佬指教下。

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

function openWindow(){
??? if(confirm("確定打開新窗口嗎?")){
?var hi = prompt("請輸入一個網(wǎng)址","http://idcbgp.cn/");?
??? window.open( hi,"_blank","toolbar=no, menubar=no, scrollbars=yes,? width=400, height=400");
??? }
??? else alert("88");
}


同為新手。。。中間再用IF ELSE也是出不來效果

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

慕粉1403493601

function openWindow(){ if(confirm("確定打開新窗口嗎?")){ var hi = prompt("請輸入一個網(wǎng)址","http://idcbgp.cn/"); if(hi==true){ window.open( hi,"_blank","toolbar=no, menubar=no, scrollbars=yes, width=400, height=400"); } else alert("88888"); } else alert("88"); } 偷師回來,這樣就行了
2017-02-08 回復(fù) 有任何疑惑可以回復(fù)我~

用英文的分號,不能用中文分號!

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

舉報

0/150
提交
取消

為什么錯誤?

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

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

幫助反饋 APP下載

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

公眾號

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