55

笔试题——JavaScript事件循环机制(event loop、macrotask、microtask)

 5 years ago
source link: https://juejin.im/post/5bac87b6f265da0a906f78d8
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.
今天做了一道笔试题觉得很有意义分享给大家,题目如下:setTimeout(()=>{ console.log('A'); },0); var obj={ func:function () { setTimeout(func

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK