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