原文:vue的开发中v-for报错 [vue/require-v-for-key] Elements in iteration expect to have 'v-bind:key' directives.

用的VS Code 工具,安装了vetur插件,报错了如下 eslint plugin vue vue require v for key Elements in iteration expect to have v bind:key directives.eslint plugin vue 在Vue 的版本里,当在组件中使用v for时,key是必须的。 解决办法: 在文件 gt 首选项 gt ...

2019-07-28 15:05 0 1785 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM