渲染进程
微队列(最高优先级),如异步请求
交互队列(高优先级),如点击事件
延时队列 (中优先级),如setTimeout
// eg.
function a() {
console.log(1);
Promise.resolve().then(() => {
console.log(2);
})
}
setTimeout(() => {
console.log(3)
}, 0);
Promise.resolve().then(a);
console.log(4);
// 输出 4 1 2 3
标签:resolve,优先级,log,chrome,队列,消息,console
From: https://www.cnblogs.com/lbx6935/p/16901434.html