📜  foreach 中的 js 等待 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:44.933000             🧑  作者: Mango

代码示例6
// Javascript will proceed to call the code that comes AFTER the forEach loop, 
// and then execute the code within the loop. This is because forEach is not 
// async-aware. YOU CANNOT USE AWAIT IN FOREACH. Use a regular for loop instead.