答复下,上面的输入后果是多少?
new Promise(resolve => {console.log(3)
}).then(() => {console.log(4)
})
setTimeout(()=> {console.log(2)
}, 0)
console.log(1)
输入后果:3 1 2
答复下,上面的输入后果是多少?
new Promise(resolve => {console.log(3)
}).then(() => {console.log(4)
})
setTimeout(()=> {console.log(2)
}, 0)
console.log(1)
输入后果:3 1 2