摘要: // 为Promise添加finally方法支持 Promise.prototype.finally = function (callback) { let P = this.constructor; return this.then( value => P.resolve(callback()). 阅读全文
posted @ 2020-06-22 11:37 狗 阅读(707) 评论(2) 推荐(0)