25

跟着 Event loop 规范理解浏览器中的异步机制

 5 years ago
source link: https://juejin.im/post/5b5873a1e51d4519133fbc35
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
原文发自我的 GitHub blog,欢迎关注 前言 我们都知道 JavaScript 是一门单线程语言,这意味着同一事件只能执行一个任务,结束了才能去执行下一个。如果前面的任务没有执行完,后面的任务就会一直等待。试想,有一个耗时很长的网络请求,如果所有任务

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK