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

用this.waterMarkTip获取值,在fetch外面是可以获取到的,但是在then里面就undefined。 解决方案: 在fetch先定义一个 this变量去存储全局的this对象。 ...

2020-02-25 11:34 0 820 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM