為什么點擊確定和取消都出來的是404錯誤界面呀,求指教
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>js常用的互動方法</title>
<script type="text/javascript">
function openWindow()
? {var mymessage=confirm("是否打開新的界面");
? if("mymessage==true"){
window.open('http://baidu.com/','_blank','width=400','height=500','menusbar='no','toolbar='no');
}
? else{document.write("已取消");}
? }
</script>
</head>
<body>
<input name="button" type="button" onclick="openWindow()" value="點擊進入慕課網" />
</body>
</html>
2019-02-12
找到了。。。低級錯誤