foo/bar,我从异步函数bar()调用它,我从另一个函数foo ()调用该函数,如下所示 async function bar () { console.log ('This should display after the result, not before it');
console.log ('Thi
我的代码中有一部分对不同的端点进行了几次API调用,我想知道这些调用中是否有任何调用失败,这样我就可以显示相应的错误消息。现在,如果one()中发生错误,它将停止所有其他调用,但这不是我想要的;如果发生错误,我希望它填充errors对象并使程序继续运行。function gatherData() { c