web性能

33 阅读1分钟

减少dom操作(会引起回流重绘)

采用class修改样式的方式, (这种方式可以合并多次操作dom)

其次将大量需要操作的dom脱离文档流操作 fragement或absolute