我是哪里寫錯(cuò)了
if(url!=null){
? ? ? ? ? ? ? ? window.open('http://idcbgp.cn','_blank','width=400,height=500');
? ? ? ? ? ? }
? ? ? ? ? ? else{
? ? ? ? ? ? ? ? document.write("不行");
? ? ? ? ? ? }
運(yùn)行后對(duì)話框不輸入也要彈網(wǎng)頁(yè)
if(url!=null){
? ? ? ? ? ? ? ? window.open('http://idcbgp.cn','_blank','width=400,height=500');
? ? ? ? ? ? }
? ? ? ? ? ? else{
? ? ? ? ? ? ? ? document.write("不行");
? ? ? ? ? ? }
運(yùn)行后對(duì)話框不輸入也要彈網(wǎng)頁(yè)
2018-10-13
舉報(bào)
2018-10-13
你估計(jì)是prompt那里的str2寫了網(wǎng)址吧