ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'name' of undefined
时间:2020-02-25 12:11:44
收藏:0
阅读:300

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

在fetch先定义一个_this变量去存储全局的this对象。
原文:https://www.cnblogs.com/codeDevotee/p/12360788.html
评论(0)