Small micro-channel program interface to promise to be addressed simultaneously by the asynchronous asynchronous callback multilayer

Use promise will be reported in the applet directly generate errors need to change

npm install regenerator --save then locate the file runtime.js node_modules incorporated in the regenerator can be used promise encapsulation function

When the function call encapsulated page must be manually introduced const regeneratorRuntime = require ( '../../ utils / runtime.js')

 

Guess you like

Origin www.cnblogs.com/gpzhen/p/11359502.html