摘要: JS执行机制 console.log(111) setTimeout(function () { console.log(222) },1000) console.log(333) // 输出结果: 111 333 222 console.log(111) setTimeout(function ( 阅读全文
posted @ 2022-07-01 12:12 jzhF1ash 阅读(53) 评论(0) 推荐(0)
摘要: 重绘和回流 渲染步骤: ​ 1.解析(Parser)HTML,生成DOM树(DOM Tree) ​ 2.同时解析(Parser)CSS,生成样式规则(Style Rules) ​ 3.根据DOM树和样式规则,生成渲染树(Render Tree) ​ 4.进行布局Layout(回流/重排):根据生成的 阅读全文
posted @ 2022-07-01 10:54 jzhF1ash 阅读(91) 评论(0) 推荐(0)