48

Promise实现原理(附源码)

 5 years ago
source link: https://juejin.im/post/5b83cb5ae51d4538cc3ec354
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.
本篇文章主要在于探究 Promise 的实现原理,带领大家一步一步实现一个 Promise , 不对其用法做说明,如果读者还对Promise的用法不了解,可以查看阮一峰老师的ES6 Promise教程。 接下来,带你一步一步实现一个 Promise 1. P

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK