Promise | all、race 方法(代码版)
2019-11-07
阅读 3 分钟
1.6k文 / 景朝霞来源公号 / 朝霞的光影笔记ID / zhaoxiajingjing ❥❥❥❥点个赞,让我知道你来过~❥❥❥❥ Promise 这次,主要介绍 Promise 的all方法和race方法的原理。 【Promise | 手写原理】【Promise | catch、finally 方法】 all 方法 使用 {代码...} 思路 参数:数组 链式调用then方法:可以 all 方法返回一个新的Promise 返...