Optimized Jquery Selector

1.Priority use ID selector

2.Add TagName before Class selector

3.Never add Tag before ID, because ID is unique

4.Use find() instead of children()

5.Chain operations faster than cache

posted on 2015-04-19 18:03  aoun  阅读(127)  评论(0)    收藏  举报