javascript - Failed to call methods in methods in vue
迷茫
迷茫 2017-06-15 09:21:08
0
2
735

var vmm=new Vue({

el:"#rrapp", data:{ beian:{}, zongshu:{} }, created:function(){ this.getbfb();//调用此方法出错 调试到这里直接停止 ......... ......... }, methods:{ getbfb: function(){ var str="12.34"; var regex=/^\d+\.\d+$/; var b=regex.test(str); if(b==true){ alert("是"); }else{ alert("不是"); } } }

});

Error message

window.alert = function(msg, callback) {

layer.open({//说此方法没有定义 offset: '400px' ,content:msg });

}

迷茫
迷茫

业精于勤,荒于嬉;行成于思,毁于随。

reply all (2)
三叔

What is the error message?

    过去多啦不再A梦

    Obviously your page did not introduce layer

      Latest Downloads
      More>
      Web Effects
      Website Source Code
      Website Materials
      Front End Template
      About us Disclaimer Sitemap
      php.cn:Public welfare online PHP training,Help PHP learners grow quickly!