62

大厂面试高频考点解析:手写一个符合Promises/A+规范的promise

 5 years ago
source link: https://juejin.im/post/5b16800fe51d4506ae719bae
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 是异步编程的一种解决方案,比传统的解决方案回调函数和事件更合理更强大。它由社区最早提出和实现,ES6 将其写进了语言标准,统一了用法,原生提供了Promise对象。本篇不注重讲解promise的用法,关于用法,可以看阮一峰老师的ECMAS

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK