41

细说 async/await 相较于 Promise 的优势

 5 years ago
source link: https://juejin.im/post/5c39523651882525a67c53d6
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
前言 上一篇文章 「前端面试题系列1」今日头条 面试题和思路解析 中提到了 async/await。它是在 ES8 中正式提出的,但是我发现,身边的朋友用到 async/await 的并不多。那么今天,我们就具体地聊聊什么是 async 函数,与 Promis

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK