会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
以梦为马,仗剑天涯!
博客园
首页
新随笔
联系
订阅
管理
2020年9月15日
forEach与async/await使用踩坑
摘要: function test() { let arr = [1, 2, 3] arr.forEach(async item => { const res = await fetch(item) console.log(res) }) console.log('end') } function fetc
阅读全文
posted @ 2020-09-15 12:59 姜小希
阅读(7452)
评论(1)
推荐(0)
编辑
公告