dom操作和http请求也属于宏任务

宏任务:

#浏览器Node
I/O
setTimeout
setInterval
setImmediate
requestAnimationFrame

微任务:

#浏览器Node
process.nextTick
MutationObserver
Promise.then catch finally