怎么錯(cuò)了?
function openWindow(){ ? ? ? ? ? ? ?var a=confirm("確定打開嗎"); ? ? ? ? ? ? ? ?if(a==true){ ? ? ? ? ? ?windows.open(' http://yifanck.cn/','_blank','width=400,height=500'); ? ? ? ? ? ?}else{ ? ? ? ? ? ? ?windows.close(); ? ? ? ? ? ?} ?} 怎么錯(cuò)了?
2016-07-26
windows.open沒有s的
我?guī)湍愀牧讼??
? function openWindow(){ ? ? ? ? ? ?
? ? ? ? var a=confirm("確定打開嗎"); ? ? ? ? ?
? ? ? ? if(a==true){ window.open(' http://yifanck.cn/','_blank','width=400,height=500'); ? ? ? ?
? ? ? ? ? ? }else{ ? ? ??
? ? ? ? ? ? ? ? window.close(); ? ? ? ?
? ? ? ? ? ? ? ? } ?}?
2016-07-26
是window.open ?window.close不是windows.open?
2016-07-26
是window.close()不是windows.close(),注意一下括號(hào)是中文括號(hào)還是英文括號(hào)。
2016-07-26
把window.close()寫成了Windows.close()了
2016-07-26
a==true 的括號(hào)變成了中文了的
2016-07-26
a==true 的括號(hào)變成了中文了的