v-for使用时的报错 Errors compiling template: Invalid v-for expression: (item,index)in poinstionData

 

因为v-for 带索引时,括号与in之间必须加空格,否则就会报如下如的错误。

 

 正确如下:in与括号之间必须要有空格

 

 

posted @ 2023-03-09 14:44  骄傲一点才可爱  阅读(457)  评论(0编辑  收藏  举报