摘要: class Promise { constructor(executer) { //构造函数 constructor 里面是个执行器 this.status = 'pending'; //默认的状态 pending this.value = undefined //成功的值默认 undefined 阅读全文
posted @ 2021-10-17 12:39 果果1024 阅读(156) 评论(0) 推荐(0)