在使用VScode编辑器vue开发过程中,v-for在Eslint的规则检查下出现报错:Elements in iteration expect to have ‘v-bind:key’ directives
报错
Elements in iteration expect to have ‘v-bind:key’ directives
最初写法
<li v-for=“goods in type0Goods”>
解决方法(常用)
<li v-bind:key=“goods” v-for=“goods in type0Goods”>
最初发布于https://blog.csdn.net/qq_44690237/article/details/98470670