摘要: 从一道面试题说起 setTimeout(function() { console.log(111); }, 0); // 这里定时器时间设置为0ms后执行 console.log(222); 复制代码 相信这道题很多人都看过,结果是先输出222,再输出111可能新手会犯错,认为定时器设置0毫秒就等于 阅读全文
posted @ 2018-11-02 16:41 rimo 阅读(404) 评论(0) 推荐(0) 编辑