call me

template上使用v-for报错

在template标签上使用v-for报错

cannot be keyed. Place the key on real elements instead

查了一下百度,是因为key需要绑定在真实的元素上

 

 解决方法:

1、将template标签替换成别的标签

2、将key绑定值写在别的元素上

 

posted on 2021-09-02 15:32  黑松沙土  阅读(2606)  评论(0)    收藏  举报

导航