摘要: 1、Promise系列 Promise手写 //极简的实现+链式调用+延迟机制+状态 class Promise { callbacks = []; state = 'pending';//增加状态 value = null;//保存结果 constructor(fn) { fn(this._res 阅读全文
posted @ 2022-10-21 15:56 聂丽芳 阅读(44) 评论(0) 推荐(0) 编辑