網頁怎么打不開????
function rec(){
var mymessage=confirm("歡迎來到慕課網");
if(mymessage=="true"){
??? window.open('http://www.xianlaiwan.cn/','_blank','width=600px,height=400px');
}
}
function rec(){
var mymessage=confirm("歡迎來到慕課網");
if(mymessage=="true"){
??? window.open('http://www.xianlaiwan.cn/','_blank','width=600px,height=400px');
}
}
2016-08-09
舉報
2016-10-20
true是布爾值,不加引號
2016-08-25
true加雙引號就是字符串了,表示的意義就不同了,另外檢查下標點符號是不是寫成中文的了,最后,樓上的同學說的很對,不要忘記調用此方法哦
2016-08-10
ture那里是不加""的
<input type="button" value="點擊我,打開新窗口" onclick="rec()"? />這里調用了嗎?
2016-08-09
true不加雙引號吧。。。