如果因为浏览器太过老旧,不支持最新的Promise.allSettledAPI,我们可以使用polyfill技术,简单地自己用Promise.all,自行实现Promise.allSettled.完整代码实现如下:if(!Promise.allS...