Open yaoningvital opened 4 years ago
const promise = new Promise((resolve, reject)=>{ console.log(1) resolve() console.log(2) }) promise.then(()=>{ console.log(3) }) console.log(4)
1 2 4 3
Q3、以下代码,最终执行结果是什么?为什么?
Answer