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