怎么沒反應(yīng)啊,我哪里錯了???
<!DOCTYPE html>
<html>
?<head>
? <title> new document </title> ?
? <meta http-equiv="Content-Type" content="text/html; charset=gbk"/>? ?
<script type="text/javascript"> ?
function openWindow()
{var open=confirm("是否新建網(wǎng)頁?");
if(open==true)
{var url=prompt("通過輸入對話框,確定打開的網(wǎng)址"," http://idcbgp.cn");
if(url!=null)
{window.open(url,"_blank",'width=400px,height=500px,menubar=no,toolbar=no');
}
else
{alert("再見");}
}
else
{alert("再見");}
}
? </script>
?</head>
?<body>
?? ?? <input type="button" value="新窗口打開網(wǎng)站" onclick="openWindow()" />
?</body>
</html>
2022-03-23
在被約束為NOTNULL的列中,只找到了內(nèi)容為NULL的記錄才符合WHERE附加條件,系統(tǒng)認(rèn)為已經(jīng)查找到了表中記錄的最末一行。MySQL將終止搜索。而且輸出那里也有錯誤。
2016-07-27
else可以不要的,就是如果條件不對的話就不執(zhí)行其他語句
后面的if只能跟一個else
2016-07-27
還多了一個else,一個if語句中后面只能有一個else
2016-07-27
給你改過了,總結(jié)一下吧,括號問題,中英文混寫問題, 其他沒什么了
2016-07-27
<!DOCTYPE html>
<html>
?<head>
? <title> new document </title> ?
? <meta charset="utf-8">
? <meta http-equiv="Content-Type" content="text/html; charset=gbk"/> ??
<script type="text/javascript"> ?
function openWindow()
{
var open=confirm("是否新建網(wǎng)頁?");
if(open==true)
{var url=prompt("通過輸入對話框,確定打開的網(wǎng)址", "http://idcbgp.cn");}
if(url!=null)
{window.open("http://idcbgp.cn","_blank",'width=400px,height=500px,menubar=no,toolbar=no');
}
else
{alert("再見");}
}
? </script>?
?</head>?
?<body>?
? ? ? <input type="button" value="新窗口打開網(wǎng)站" onclick="openWindow()" />?
?</body>
</html>
2016-07-27
url是路徑的意思,讓你在里面填網(wǎng)址的,不是讓寫個Url
2016-07-27
你少了一個括號,在最后的一個else前加一個括號。
2016-07-27
你的第一個再見后面的大括號格式錯了。換成英文。