JSRUN
1-整体 script 作为第一个宏任务进入主线程,遇到 console.log,输出 script start 2-遇到 setTimeout,其回调函数被分发到宏任务 Event Queue 中 3-遇到 Promise,其 then函数被分到到微任务 Event Queue 中,记为 then1,之后又遇到了 then 函数,将其分到微任务 Event Queue 中,记为 then2 4-遇到 console.log,输出 script end
使用此草稿 删除草稿