運(yùn)行不了求指正
function openWindow(){
?? ?var ask=confirm("確定打開(kāi)新頁(yè)面嗎?")
?? ?if(ask==true)
?? ??? ?{var open=prompt("通過(guò)輸入對(duì)話框,確定打開(kāi)的網(wǎng)址","默認(rèn)為 http://yifanck.cn/")}
?? ?if(open=!null)
?? ????? {window.open("http://www.baidu.com",'width=400,height=500, menubar=no,toolbar=no')}
?? ? else
?? ? ?? ?alert("再見(jiàn)!")
?? ? else
?? ? ?? ?alert("再見(jiàn)!")
}
</script>
運(yùn)行不了。求指正
2016-05-24
if(open!=null) ? ? 不等是!=,不是=!
2016-05-21
你的先確定有沒(méi)有運(yùn)行到這個(gè)方法里面 ?可以用 ?例如 ?alert(11); 測(cè)試