使用vue1.0写法不报错但是模块不加载

来源:互联网 发布:tw 域名yaoqiu 编辑:程序博客网 时间:2024/05/22 09:41

vue1.0老写法

new Vue({  el: '#app',  components: { App }});


在2.0上没有报错,但是模块不加载,找了一天的问题,最后才想起来应该

new Vue({  el: '#app',  template: '<App/>',  components: { App }});


自己SB了一天,喵了个咪的。

0 0
原创粉丝点击