這按鈕咋沒反應(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 gg==confirm("是否打開?");
? ? if(gg==true)
? ? {
? ? ? ? var hh==prompt("打開網(wǎng)址嗎","http://idcbgp.cn/");
? ? ? ? if(hh!=null)
? ? ? ? {
? ? ? ? ? ? window.open(hh,"_blank",'width=400,height=500,toolbar=no,menubar=no');
? ? ? ? }
? ? ? ? else
? ? ? ? {
? ? ? ? ? ? alert("bye");
? ? ? ? }
? ? }
else
{
? ? alert("bye");
}
? }??
? </script>?
?</head>?
?<body>?
? <input type="button" value="新窗口打開網(wǎng)站" onclick="openWindow()" />?
?</body>
</html>
2020-04-13
=和==性質(zhì)不一樣的,=是賦值,==是等于
2020-04-08
?多加了= 我暈死 查了好久