1.同步方法直接运行
2.异步方法被放入event table, 之后被推入event queue里
按照异步划分准确的划分方式是:
macro-task(宏任务):包括整体代码script,setTimeout,setInterval
micro-task(微任务):Promise,process.nextTick
js引擎
js引擎

相关文章:

  • 2021-12-17
  • 2022-12-23
猜你喜欢
  • 2021-10-06
  • 2022-12-23
  • 2021-10-21
  • 2021-08-12
  • 2022-12-23
  • 2021-06-14
  • 2022-01-16
相关资源
相似解决方案