29

「硬核JS」深入了解异步解决方案

 4 years ago
source link: https://juejin.im/post/5e4613b36fb9a07ccc45e339
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.
前言 Javascript语言的执行环境是单线程(single thread,指一次只能完成一件任务,如果有多个任务,就必须排队,前面一个任务完成,再执行后面一个任务,以此类推) 这种模式的好处是实现起来比较简单,执行环境相对单纯,坏处是只要有一个任务耗时很长

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK