史诗般的异步 轻型异步foreach东西,打字时间是凌晨1点。 import { forEach } from 'epic-async' ; // each task takes a different amount of time to complete const array = [ 1000 , 5000 , 100 , 2000 ] ; async function go ( ) { // however, it will not continue until the previous iteration completes // you can also use .then instead of await if you want but i don't see why you'd do that // or you could do neither