event loop By Jay 发表于 2018-09-25 文章目录 js event loop task microtask 12345678910111213console.log('script start');setTimeout(function() { console.log('setTimeout');}, 0);Promise.resolve().then(function() { console.log('promise1');}).then(function() { console.log('promise2');});console.log('script end'); ref tasks-microtasks-queues-and-schedules