46

JavaScript 事件循环及异步原理(完全指北)

 5 years ago
source link: https://juejin.im/post/5bc1adc45188255c82553921
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.
引言 最近面试被问到,JS 既然是单线程的,为什么可以执行异步操作? 当时脑子蒙了,思维一直被困在 单线程 这个问题上,一直在思考单线程为什么可以额外运行任务,其实在我很早以前写的博客里面有写相关的内容,只不过时间太长给忘了,所以要经常温习啊:(浅谈 Gene

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK