function openWindow() { var k_open; var temp=confirm("是否要打開新的網(wǎng)頁?"); if (temp) { k_open=prompt("請輸入你要打開的網(wǎng)址:","http://idcbgp.cn/"); window.open(k_open,'_blank','width=400,height=500,menubar=no,toolbar=no'); } }
function openWindow() { ?var k_open; ? ? ?var temp=confirm("是否要打開新的網(wǎng)頁?"); ?if (temp) ?{ ? ?k_open=prompt("請輸入你要打開的網(wǎng)址:","http://idcbgp.cn/"); ? ?window.open(k_open,'_blank','width=400,height=500,menubar=no,toolbar=no'); ?} } 這個點(diǎn)擊窗口怎么沒有反應(yīng),求大神告訴
2016-10-29
找到問題了,是哪個逗號是中文格式的,應(yīng)該是英文格式才能運(yùn)行
2016-10-29
if?
else ??
2016-10-29
?k_open=prompt("請輸入你要打開的網(wǎng)址:","http://idcbgp.cn/");?這句去掉,"http://idcbgp.cn/"這一句