原文:瀏覽器后台報錯,Vue組件的坑:property or method " " is not defined on the instance but referenced during render.Make sure that this property in reactive,either in the data,or for class-based

頁面那個很正常,但是瀏覽器后天一直報錯:property or method 組件名 is not defined on the instance but referenced during render.Make sure that this property in reactive,either in the data,or for class based 以前也遇到過,這個是:有個方法或者屬 ...

2019-11-18 10:13 0 421 推薦指數:

查看詳情

關於Vue報錯Property or method “xxx“ is not defined on the instance but referenced during render.)防踩

今天記錄一下這個問題,在用vue寫前端,在頁面取值的時候,發現控制台一直報錯 控制台報錯信息: 錯誤信息:屬性或方法“peoples”不是在實例上定義的,而是在渲染過程中被引用的。 通過初始化屬性,確保此屬性是反應性的,無論是在數據選項中,還是對於基於類的組件。 所以,由此 ...

Mon Apr 18 17:48:00 CST 2022 0 4359
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM