摘要: Promise.prototype.any any的参数是一个可迭代对象, 它会返回第一个执行resolve函数的实参值,如果迭代对象的所有项执行的都是reject,那么它会抛出错误 (async ()=> { try{ const result = await Promise.any(new Se 阅读全文
posted @ 2021-03-10 21:01 nextYearToday 阅读(153) 评论(0) 推荐(0)