zoukankan      html  css  js  c++  java
  • 浏览器后台报错,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 

    以前也遇到过,这个是:有个方法或者属性在数据data里没定义,无法实现数据的响应式的样式,提供观察发现父组件里有个v-model“组件名”,确实在data里没定义属性,初始值给个

    因为v-models=属性名“”,是Vue双向绑定,必须现在data里定义个初始值,在发福利改变值或状态:所以

    data(){

    v-model的绑定属性:false;// 可以了

    }

  • 相关阅读:
    hdu 1174
    计算几何模板
    又是一年博客记
    hdu 1225 Football Score
    与逆序数有关的
    hdu 2844 Coins
    hdu 1171 Big Event in HDU
    UVA Exponentiation
    UVA Summation of Four Primes
    Linux:设置alias永久生效
  • 原文地址:https://www.cnblogs.com/mahmud/p/11880517.html
Copyright © 2011-2022 走看看