javascript事件循环机制

reference

http://altitudelabs.com/blog/what-is-the-javascript-event-loop/