為什么打不開
function openWindow() { ? ?
?var _hehe=confirm("是否打開網頁啊");
?if(_hehe==true){ ??
?var kk=prompt("要打開這個網站了","http://www.xianlaiwan.cn/"); ? ?window.open(kk,'_blank','width=400px,height=500px,menubar=no,toolbar=no');
?} ? ?
?? }
function openWindow() { ? ?
?var _hehe=confirm("是否打開網頁啊");
?if(_hehe==true){ ??
?var kk=prompt("要打開這個網站了","http://www.xianlaiwan.cn/"); ? ?window.open(kk,'_blank','width=400px,height=500px,menubar=no,toolbar=no');
?} ? ?
?? }
2017-02-19
舉報
2017-02-20
你的這兩句的小括號是中文符。。。
2017-02-20
你這個if(_hehe==true)和prompt("要打開這個網站了","http://www.xianlaiwan.cn/")的括號要用英文形式的括號,不能用中文的括號,還有你這方法只定義沒調用
2017-02-19
kk要判斷一下,if(kk==true){window.open(kk,'_blank','width=400px,height=500px,menubar=no,toolbar=no');}
吧
2017-02-19
是window.confirm(),window.prompt();