哪个更适合用作性能透视图:
$(".div1 h2, .div1 h3")
或
$(".div1").find("h2, h3")
发布于 2011-06-04 01:06:27
http://jsperf.com/selector-vs-find-again
选择器更快
(注意:创建随机的html只是为了让它不只是页面上的那些元素)
https://stackoverflow.com/questions/6230266
相似问题