1. TypeError: Cannot read property '_withTask' of undefined

这是因为引用找不到导致的,比如:

<button @click='aaa'></button>

在methods中没有定义aaa事件,就会报错,

解决方法:先写方法,后调用。

2. TypeError: data.indexOf is not a function

这是因为data中声明的数据类型错误,比如数据是字符串类型或者数组类型的,但是你声明成了对象。

相关文章:

  • 2022-12-23
  • 2021-05-24
  • 2021-05-08
  • 2021-08-09
  • 2021-06-14
  • 2021-11-29
猜你喜欢
  • 2021-06-15
  • 2021-04-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-07
  • 2022-12-23
相关资源
相似解决方案