为了账号安全,请及时绑定邮箱和手机立即绑定

请问我这个代码哪里错了?

请问我哪里错了?

<!DOCTYPE HTML>

<html>

<head>

<title>new document</title>

  <meta http-equiv="Content-Type",content="text/html; charset=utf-8"/>

  <script type="text/javascript">

  function lai(){

      var a = confirm("Do you want to open the window?");

      if (a==true)

      {    var b = prompt("Please write the adress you want to go to!","http://www.baidu.com")j;

           if (b!=null){

               window.open('http://www.baidu.com','_blank','width=400,height=500,menubar=no,toolbar=no');

           }

           else{

               alert("Thanks for your using");

           }

      }

      else {

           alert("It is so pity to give up using me!");

      }

  }

  </script>

</head>

<body>

  <input type = "button" value = "Open new window" onclick = "lai()" />

</body>

</html>


正在回答

3 回答

第10行 结尾处多了个j 

0 回复 有任何疑惑可以回复我~
#1

慕少8622884 提问者

非常感谢
2015-12-15 回复 有任何疑惑可以回复我~

多了个j少个}

0 回复 有任何疑惑可以回复我~

var b = prompt("Please write the adress you want to go to!","http://www.baidu.com")j;

多了个字母j

0 回复 有任何疑惑可以回复我~
#1

慕少8622884 提问者

非常感谢
2015-12-15 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

请问我这个代码哪里错了?

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号