参考文章:http://www.runoob.com/w3cnote/vue2-start-coding.html
1、根据教程,启动项目之前要npm install一下
2、引入外部组件时import是写在script里的
3、一个组件里两个div 不能并列存在,但是可以包含
4、数据要写在 return 里面而不是像文档那样子写
参考文章:http://www.runoob.com/w3cnote/vue2-start-coding.html
1、根据教程,启动项目之前要npm install一下
2、引入外部组件时import是写在script里的
3、一个组件里两个div 不能并列存在,但是可以包含
4、数据要写在 return 里面而不是像文档那样子写