摘要: //Promise/A+规定的三种状态 const PENDING = 'pending' const FULFILLED = 'fulfilled' const REJECTED = 'rejected' class MyPromise { // 构造方法接收一个回调 constructor(ex 阅读全文
posted @ 2021-09-01 15:57 lihao_Q 阅读(101) 评论(0) 推荐(0) 编辑