芭比龙

导航

手写Promise/Promise.all/promise.race

转载自:https://www.bilibili.com/read/cv7483834/ Promise class Promise1{ state='pending' succeed=null fail=null constructor(fn){ fn (this.resolve.bind(thi

posted on 2020-09-08 11:00  芭比龙  阅读(475)  评论(0编辑  收藏  举报