原文: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