宏任务,微任务 javascript把异步任务做了进一步划分 1,宏任务(macrotask) 异步Ajax请求 setTimeout,setinterval 文件操作 其他宏任务 2,微任务(microtask) Promise.then,catch和.finally process.nextTick 其他微任务