快捷导航

我这里哪里错了

new document

免责声明:本内容仅代表回答者见解不代表本站观点,请谨慎对待。

版权声明:作者保留权利,不代表本站立场。

回复

使用道具 举报

参与会员2

var open=confrim("是否打开"); // 单词拼写错误,应该是confirm
if (open==ture){//单词拼写错误,应该是true
if (ulr==ture){ // 单词拼写错误,而且字符串不能直接用==true判断,应该直接写: if(ulr) {
修正后:
newdocumentfunctionopenWindow(){varopen=confirm("是否打开");if(open==true){varurl=prompt("请输入网址","http://www.imooc.com/");if(url){window.open(url,"_blank",'windth=400px,hight=500px,menuber=no,toolber=no');}else{alert("再见");}}else{alert("再见");}}</script>
回复

使用道具 举报

单词拼写错误
回复

使用道具 举报

可能感兴趣的问答

发新帖
  • 微信访问
  • 手机APP