【手写Promise】史上最最最详细的手写Promise教程

转载自https://yq.aliyun.com/articles/613412javascript class Promise{ constructor(executor){ this.state = 'pending'; this.value = undefined; this.reason = undefined; this.onResolvedCallb
相关文章
相关标签/搜索