這個哪里出錯了嘛?
function openWindow() ? { ? ? ? var mes1=confirm("是否打開新窗口?"); ? ? ? if(mes1) ? ? ? { ? ? ? ?var mes2=prompt("請輸入要打開的地址","http://www.xianlaiwan.cn/"); ? ? ? ?window.open(mes2,'_blank','width=400,height=500,menubar=no,toolbar=no'); ? ? ? } ? ? ? ? ?else ? ? ? ?document.write("慢走不送"); ?}
2016-06-01
/*符號錯誤吧,有幾個地方都是中文的符號,還有else后面缺少?? {??? */
function openWindow() ?
??? {???? ?
??????? var mes1=confirm("是否打開新窗口?");? ?
??????? if(mes1)?????? {???? ?
??????????? var mes2=prompt("請輸入要打開的地址","http://www.xianlaiwan.cn/"); ?
??????????? window.open(mes2,'_blank','width=400,height=500,menubar=no,toolbar=no');?? ?
??????????? }?????? ?
??????????? else?? {
??????????? document.write("慢走不送");? }
??? }