【发布时间】:2013-08-01 01:47:39
【问题描述】:
请告知在 jQuery 中使用选择器的哪种方式更快:
$('.class1, .class2').html('');
或
$('.class1').html('');
$('.class2').html('');
【问题讨论】:
-
使用jsPerf....
-
我以为之前已经准备好了一些测试
标签: javascript jquery performance jquery-selectors