会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
TING FENG
When the whole world is about to rain, let's make it clear in our heart together
热爱前端开发,专注于前端
婷风
Hey,Girl,Sharing & Loving
博客园
首页
联系
订阅
管理
2022年2月12日
手动编写一个promise.all函数
摘要: Promise.all = function(iterable) { return new Promise((resolve, reject) => { let result = [] for(const item of iterable) { item.then(data => { result.
阅读全文
posted @ 2022-02-12 15:40 婷风
阅读(127)
评论(0)
推荐(0)
编辑
公告