1. 一个点击事件报错:

Property or method "deleteFun" 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

VUE 解决:Property or method "deleteFun" is not defined on the instance but referenced during render.

2. 报错原因:这个方法未定义。我以为是写在methods中的,其实不是。我原写法:

 VUE 解决:Property or method "deleteFun" is not defined on the instance but referenced during render.

3.解决:改正图中红框中位置代码。

VUE 解决:Property or method "deleteFun" is not defined on the instance but referenced during render.

这样就可以了。

VUE 解决:Property or method "deleteFun" is not defined on the instance but referenced during render.

 

相关文章:

  • 2022-12-23
  • 2021-09-21
  • 2021-04-14
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-23
  • 2022-12-23
  • 2021-08-19
  • 2021-07-02
  • 2021-12-03
  • 2021-07-22
  • 2021-08-21
相关资源
相似解决方案