亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

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

為什么錯誤?

為什么錯誤?

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


正在回答

3 回答

繼續繼續-。-,試完了function openWindow(){
??? if(confirm("確定是否打開http://www.xianlaiwan.cn/?")){
??? var open = prompt("確定打開下列網址?","http://www.xianlaiwan.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 回復 有任何疑惑可以回復我~

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


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

0 回復 有任何疑惑可以回復我~
#1

慕粉1403493601

function openWindow(){ if(confirm("確定打開新窗口嗎?")){ var hi = prompt("請輸入一個網址","http://www.xianlaiwan.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 回復 有任何疑惑可以回復我~

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

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

為什么錯誤?

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號