用this.waterMarkTip获取值,在fetch外面是可以获取到的,但是在then里面就undefined。
解决方案:
在fetch先定义一个_this变量去存储全局的this对象。
ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'name' of undefined
原文:https://www.cnblogs.com/codeDevotee/p/12360788.html