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
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
转载于:https://www.cnblogs.com/aoun/p/4439563.html