页面中不添加 :keysegmentfault
索引的时候,会不停的提示虚线,但不影响使用数组
后来加了一个索引,加成了:key= "content"spa
从后台取出来的contents是一个list,里面有多条content记录,对象
content对象中会有id,name,等属性blog
这时候,也不影响使用,可是控制台console中会不停的出现提示索引
[Vue warn]: Avoid using non-primitive value as key
意思是不要绑对象数组啥的啊,get
用元素或者String类型啊it
而后就改了console
content.id这个值class
不再报错了