setTimeout(() => { console.log(0)})new Promise(resolve => { resolve(1) Promise.resolve().then(t => { console.log(2) }) console.log(3)}).then(t => { console.log(t)})console.log(4)为什么是先输出 2 再输出 1?而不是先1再2?求大佬解答,感激不尽!
添加回答
举报
0/150
提交
取消