請(qǐng)問哪里有問題,為什么點(diǎn)擊確定以后并沒有打開默認(rèn)窗口
function openWindow(){
? ? // 新窗口打開時(shí)彈出確認(rèn)框,是否打開
? ? var message=confirm("是否打開新窗口?")
? ? if(message==ture)
? ? ? ? var input=prompt("請(qǐng)輸入你要打開的窗口:")
? ? ? ? if(input==null)
? ? ? ? ? ? window.open(' http://idcbgp.cn/','_blank','width=400,height=500,neubar=no,toobar=no')
? ??
? ? }
? ? openWindow();
2018-05-25
好像是編譯器的問題? 我在hbuilder中可以
2018-05-25
if語句用大括號(hào)括起來