Skip to content

Instantly share code, notes, and snippets.

@ThaddeusJiang
Created November 6, 2018 09:47
Show Gist options
  • Select an option

  • Save ThaddeusJiang/085e7f0f46094a89b3304eec39145b53 to your computer and use it in GitHub Desktop.

Select an option

Save ThaddeusJiang/085e7f0f46094a89b3304eec39145b53 to your computer and use it in GitHub Desktop.
JavaScript 运行机制
  1. JavaScript 是一门单线程语言,所有所谓异步,其实都是用同步方法模拟的。
  2. 事件循环 Event Loop 是 js 实现异步的一种方法,也是 js 的执行机制。

Image from Gyazo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment