const cb = async () => { for(let i = 0; i <= 100; ++i) { await new Promise((resolve)=>{log(resolve)}) } } cb(); 这样应该也行