随身笔记
随身笔记

Vue报错(Property or method "xxx" is not defined on the instance but referenced during render.)

报错如下:
Property or method “xxx” is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.

原因:
你的“”xxx‘’属性或者”xxx”方法没有定义

 

解决:

export default { 
 data(){ 
   return{ 
     xxx:""  //去定义
   }, 
   methods:{ 
     xxx(){ } //去定义
   } 
 }, 
}

https://blog.csdn.net/qq_39242027/article/details/85001653

 

没有标签
首页      前端资源      Vue报错(Property or method "xxx" is not defined on the instance but referenced during render.)

随身笔记

Vue报错(Property or method "xxx" is not defined on the instance but referenced during render.)
报错如下: Property or method “xxx” is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for …
扫描二维码继续阅读
2021-04-22