JQuery性能优化
摘要:1,总是从ID选择器开始继承这条原则就是有id尽量选id。2,在class前使用tag(标签名)var active_light = $(”#traffic_light input.on”);3,将jQuery对象缓存起来var $active_light = $(”#traffic_light input.on”);$active_light.bi...
阅读全文
posted @ 2009-09-27 16:35
posted @ 2009-09-27 16:35
posted @ 2009-09-21 21:15
posted @ 2009-09-20 18:12
posted @ 2009-09-13 14:21