ReferenceError: Promise is not define


盡管加入了babel-polyfill ,依然出現 【ReferenceError: Promise is not define】的問題。目前只在三星、金立手機出現這種問題。沒辦法,只能強行修復了。

npm install promise --save-dev

window.Promise = require('promise');

記得清除一下手機的緩存。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM