JS練習(xí)問題
function openWindow(){ ? ? ? ?var open = confirm("是否打開新窗口?"); ? ? ? ?var web ?= prompt("請輸入要打開的網(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
為什么直接寫 null?