理解 Node.js 中非同步處理與 Event Loop 的關係
Preface 1 2 3 4 5 6 7 8 9 10 (() => { setTimeout(() => { console.log(1) }) Promise.resolve().then(() => { console.log(2) }) consol...
Preface 1 2 3 4 5 6 7 8 9 10 (() => { setTimeout(() => { console.log(1) }) Promise.resolve().then(() => { console.log(2) }) consol...