大神看下我哪里寫(xiě)錯(cuò)了 幫忙改正下
<!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 bbcs=confirm("是否打開(kāi)新的網(wǎng)站?");
? ? if(bbcs==true){
? ? ? ??
? ? ? ? var cssc=prompt("是你要的網(wǎng)站嗎騷年","http://idcbgp.cn/");
? ? ? ? if(cssc!=null){
? ? ? ? ? window.open(cssc,'_blank','width=400,height=500,menubar=no,toolbar=no'); ?
? ? ? ? }
? ? ? ? ? ? ?else{alert("對(duì)對(duì)對(duì) 我是嬌妹");}
? ? ? ??
? ?
? ? }
? ? ? ? ? ? ?else{alert("我是全英雄聯(lián)盟最騷的騷豬");}
? ? ? ??
? ? }
? ? // 新窗口打開(kāi)時(shí)彈出確認(rèn)框,是否打開(kāi)
? ? // 通過(guò)輸入對(duì)話框,確定打開(kāi)的網(wǎng)址,默認(rèn)為 http://idcbgp.cn/
? ? //打開(kāi)的窗口要求,寬400像素,高500像素,無(wú)菜單欄、無(wú)工具欄。
? ??
? ??
? </script>?
?</head>?
?<body>?
?<input type="button" value="新窗口打開(kāi)網(wǎng)站" onclick="openWindow()" />?
?</body>
</html>
2017-03-30
你是試試這樣,多條判斷語(yǔ)句:if。。。else if。。。。。else if。。。else。。。
2017-03-30
你個(gè)傻的 ? if...else語(yǔ)句多寫(xiě)了這么多{}干嘛,自己排查花括號(hào)的問(wèn)題
2017-03-30
?var cssc=prompt("是你要的網(wǎng)站嗎騷年","http://idcbgp.cn/");逗號(hào)用英文的
2017-03-30
首先11行逗號(hào)用錯(cuò)了應(yīng)該是英文狀態(tài)下
2017-03-30
第21行要用英文狀態(tài)下逗號(hào)。