用async会报regeneratorRuntime is not defined错误
解决方法:
1.npm install babel-plugin-transform-regenerator
2.npm i regenerator-runtime -S
3.在页面最上方 引入import 'regenerator-runtime/runtime';
用async会报regeneratorRuntime is not defined错误
解决方法:
1.npm install babel-plugin-transform-regenerator
2.npm i regenerator-runtime -S
3.在页面最上方 引入import 'regenerator-runtime/runtime';