// 宏 1 7 8
// 微 11 3 9 4 10
// log: 2 6
setTimeout(function () {
console.log(1)
}, 0)
Promise.resolve().then(() => console.log(11))
new Promise(function (resolve, reject) {
console.log(2)
resolve()
})
.then(function () {
console.log(3)
Promise.resolve()
.then(() => console.log(9))
.then(() => console.log(10))
setTimeout(function () {
console.log(7)
}, 0)
})
.then(function () {
console.log(4)
setTimeout(function () {
console.log(8)
}, 0)
})
console.log(6)
// 2, 6, 3, 4, 1