calpa.github.io
calpa.github.io copied to clipboard
Uncaught ReferenceError: regeneratorRuntime is not defined 解決方法 | Calpa's Blog
https://calpa.me/2018/07/29/regenerator-runtime-is-not-defined/
前言
async/await 能讓開發者享受異步操作的快感,解決回調地獄的問題。然而,編譯器對於 async/await 的編譯有時候卻不和我們想象中的一樣。透過安裝正確插件,或改回 Promise 版本,我們可以解決這個問題。