元歌
2016-10-16 15:39:33
?function?openWindow()
{var?open=confirm("確認(rèn)新建窗口打開網(wǎng)站嗎?");
if(open==true)
???{
????var?url=prompt("通過輸入對話框,確定打開的網(wǎng)址","http://idcbgp.cn");
if(url!=null)
???{
window.open(url,"_blank",'width=400px,height=500px,menubar=no,toolbar=no');????
}
??else
{alert("再見!");}
}???
?else
{alert("再見!");}
????}這個是什么意思為什么有個感嘆號,為什么=null,不是=ture嗎if(url!=null)
3 回答
添加回答
舉報
0/150
提交
取消