解决回调太多问题

Tags
javascript
Created
Nov 16, 2015 2:59 AM

如最基本的,使用具名函数并保持代码层级不要太深

使用 Promise

使用 async/await

使用 Generator

SuperMade with Super