<title>我们互动下</title>
<script type="text/javascript">
function kaishi(){
var one=confirm("我们互动下");
if one==true{
document.write("JS进阶篇");}
else{
alert("关注JS高级篇");
}}
</script>
</head>
<body><form>
<input type="button" onclick="kaishi()" value="点击我,弹出确认对话框"/>
</form></body>
</html>
if条件语句后少了括号吧
if的条件要放在括号里
试过了,第五行改为if (one==true){
就能弹窗了