摘要:
let promise = new Promise((resolve,reject)=>{ setTimeout(() => { resolve('ok 成功了') }, 10000); }) const wrap = promise=>{ let abort let myP = new Promi 阅读全文
摘要:
/ all 方法 最终返回的是一个promise // 如果全成功了 才算成功 如果一个失败了 就失败了 function isPromise(x) { if((typeof x 'object' && x!==null) || typeof x == 'function'){ if(typeof 阅读全文
摘要:
let promise2 = new Promise((resolve, reject) => { if (this.status RESOLVED) { setTimeout(() => { try { let x = onFulfilled(this.value); resolvePromise 阅读全文
摘要:
https://blog.csdn.net/weixin_30577801/article/details/102246577 https://www.cnblogs.com/luwei-web/p/10275400.html 阅读全文