原文:浏览器后台报错,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