摘要: promise内部实现原理: function $Promise(fn) { // Promise 的三种状态 this.PENDING = 'pending' this.RESOLVED = 'resolved' this.REJECTED = 'rejected' this.onResolved 阅读全文
posted @ 2020-07-04 17:48 前端杂货 阅读(914) 评论(1) 推荐(0) 编辑