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