ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'name' of undefined

 

 用this.waterMarkTip获取值,在fetch外面是可以获取到的,但是在then里面就undefined。

解决方案:

ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'name' of undefined

 

 在fetch先定义一个_this变量去存储全局的this对象。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-21
  • 2022-01-16
  • 2022-12-23
  • 2021-05-14
猜你喜欢
  • 2021-05-05
  • 2022-12-23
  • 2022-12-23
  • 2021-10-10
  • 2021-07-18
  • 2021-11-18
相关资源
相似解决方案