這個函數(shù)哪里錯了?
?function openWindow(){
? ? ? ?var open=comfirm("確認(rèn)打開新網(wǎng)址?");
? ? ? ?if(open==true){
? ? ? ? var newurl=prompt("確認(rèn)打開新窗口?","http://idcbgp.cn");
? ? ? ? if(newurl!=null){
? ? ? ? ? ? window.open(newurl,'_blank','width=400px,height=500px,menubar=no,toolbar=no');
? ? ? ?}
? ? ? ?else{
? ? ? ? ? document.write("失敗");
? ? ? ?}
? ? ? ?}
? ? ? ?else{
? ? ? ? ? ?document.write("失敗");
? ? ? ?}?
? ?}
2019-07-18
2019-07-01
你是不知道哪里執(zhí)行不下去嗎。打斷點(diǎn)看看
2019-06-28
var open=comfirm("確認(rèn)打開新網(wǎng)址?");
2019-06-28
if(newurl!=null)--》if(newurl!=“”)