Promise.all([]).then((res) => { console.log('all'); }); Promise.race([]).then((res) => { console.log('race'); });
all 和 race 都会被输出
all 和 race 都不会被输出
all 会被输出,而 race 不会被输出
all 不会被输出,race 会被输出