JS練習(xí)問(wèn)題
function openWindow(){ ? ? ? ?var open = confirm("是否打開(kāi)新窗口?"); ? ? ? ?var web ?= prompt("請(qǐng)輸入要打開(kāi)的網(wǎng)址","http://idcbgp.cn"); ? ? ? ?if(web==true){ ? ? ? ? ? ?window.open('http://idcbgp.cn','width=400px,height=500px'); ? ? ? ? ? ?} ? ? ? ?else{ ? ? ? ? ? ?null ? ? ? ? ? ?} ? ? ? ?} 為什么不行?
2015-05-13
2015-05-13
為什么直接寫(xiě) null?