我是哪里寫錯了
if(url!=null){
? ? ? ? ? ? ? ? window.open('http://www.xianlaiwan.cn','_blank','width=400,height=500');
? ? ? ? ? ? }
? ? ? ? ? ? else{
? ? ? ? ? ? ? ? document.write("不行");
? ? ? ? ? ? }
運行后對話框不輸入也要彈網頁
if(url!=null){
? ? ? ? ? ? ? ? window.open('http://www.xianlaiwan.cn','_blank','width=400,height=500');
? ? ? ? ? ? }
? ? ? ? ? ? else{
? ? ? ? ? ? ? ? document.write("不行");
? ? ? ? ? ? }
運行后對話框不輸入也要彈網頁
2018-10-13
舉報
2018-10-13
你估計是prompt那里的str2寫了網址吧