1、Emitted value instead of an instance of Error--------v-for标签中使用key属性绑定:
v-for="item in arr" :key="item1"
2、There are multiple modules with names that only differ in casing.-------- 因为文件名和引用不一致,
举个例,文件名是App.js,但是你引用的时候是写的app.js
本文探讨了在Vue中使用v-for指令时遇到的问题:不当使用key属性导致的错误提示,以及由于模块名称大小写不一致引发的问题。通过具体实例说明如何避免这些常见错误。
1、Emitted value instead of an instance of Error--------v-for标签中使用key属性绑定:
v-for="item in arr" :key="item1"
2、There are multiple modules with names that only differ in casing.-------- 因为文件名和引用不一致,
举个例,文件名是App.js,但是你引用的时候是写的app.js
2395
5268
2万+
4431

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