标签:csdn settime http node task 同步 out ISE render
console.log(1)
setTimeout(()=>{
console.log(2)
},2000)
setTimeout(()=>{
console.log(3)
Promise.resolve().then(()=>{
console.log(4)
})
setTimeout(()=>{
console.log(5)
},3000)
},1000)
new Promise((resolve,reject)=>{
console.log(6)
resolve()
}).then(()=>{
console.log(7)
})
console.log(8)
// 输出结果:1,6,8,7,3,4,2,5
标签:csdn settime http node task 同步 out ISE render
原文地址:https://www.cnblogs.com/nanhuaqiushui/p/11787480.html