请教一下,Promise 的then回调在可以立即得到结果的情况下,还是会异步执行。这样设计的初衷是什么。
Promise.resolve()
.then(() => {
console.log(1)
})
console.log(2)
展开
2