Really get to know yourself before you make any decision.
做任何决定之前必须先了解自己。
1.v-for没有提示
可能是原来的vue-helper不起作用了,
有帖子推荐用Vue 3 Snippets,
== 卸载vue-helper安装Vue 3 Snippets后解决 ==
2.vue-router案例页面出不来
页面变成了失去超链接的样子

排查发现是path写成了paths。。。
3.在最后抽取的routes部分,3条平行语句用逗号分隔,会导致另外两条语句不起作用
const Welcome = {'path': '/welcome', 'component':{ 'template': '<div>欢迎</div>' }}
const Student = {'path': '/student', 'component':{ 'template': '<div>student list</div>'}}
const Teacher = {'path': '/teacher', 'component':{ 'template': '<div>teacher list</div>'}}
应使用分号或者不写
小结:只能说,vue中符号导致的一些小问题还是挺多的…
博客主要讲述了Vue开发中的常见问题及解决办法。包括v-for没有提示,卸载vue-helper安装Vue 3 Snippets后解决;vue-router案例页面出不来,原因是path写成了paths;routes部分平行语句用逗号分隔会使部分语句失效,应使用分号或不写。
2万+

被折叠的 条评论
为什么被折叠?



