摘要:下面demo示例,只支持实例的then和catch,代码如下: function PromiseDiffer(fn){ var self = this; this.status = 'pendding'; this.value = undefined; this.reason = null; fun 阅读全文
posted @ 2021-03-05 09:19 风雨后见彩虹 阅读(74) 评论(0) 推荐(1) 编辑