摘要: 前端小伙伴面试的时候,一定遇到过promise和计时器 输出值、执行先后顺序的题目。下面给大家梳理下具体知识点。 宏任务和微任务 宏任务包括: script(整体代码) setTimeout setInterval I/O UI交互事件 postMessage MessageChannel setI 阅读全文
posted @ 2021-04-27 15:34 底层951 阅读(175) 评论(0) 推荐(0)