vue學習中遇到的錯誤 Duplicate keys detected: '[object Object]'. This may cause an update error.


前端入門自學,說錯的請大神指點。

Avoid using non-primitive value as key, use string/number value instead.
Duplicate keys detected: ‘[object Object]’. This may cause an update error.

 

 運行后出現這些警告,意思是檢測到重復的鍵值。

 

 把:key里 的值改成以下兩種情況之一就可以了。

 

 

 

 

______________

鏈接:https://blog.csdn.net/weixin_42017905/article/details/100198369


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM