20

这样你都不懂Promise,算我输!

 5 years ago
source link: https://juejin.im/post/5b5491856fb9a04fa8672cad
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的身世 1、Promise历史 Promise 是异步编程的一种解决方案,比我们传统的回调函数、事件更加合理,最早由社区提出并实现,ES6觉得很ok,就写进了语言标准中,统一了语法,并且提供了原生的Promise对象。 所谓的Promise,

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK