摘要: const PENDING = "pending"; const RESOLVED = "resolved"; const REJECTED = "rejected"; function MyPromise(fn){ const that = this; that.state = PENDING; that.value = null; that.resolvedCallbacks = ... 阅读全文
posted @ 2019-07-09 20:10 进阶之路-前端 阅读(328) 评论(0) 推荐(0) 编辑