javascript中的Event Loop详解

首先来一段代码开篇 console.log(1); setTimeout(function() { console.log(2); }); function fn() { cons