for await (let a of [1,2,3]) {
  console.log(a)
}

 

node 环境里必须在 async 函数中, 浏览器控制台中不需要。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-14
  • 2021-06-22
  • 2021-08-16
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2021-12-23
  • 2021-09-29
  • 2022-01-17
  • 2022-12-23
相关资源
相似解决方案