我想知道如果我id
在一次调用 jQuery 函数时对一些 ' 进行分组,或者逐行调用它(id
after id
),这是否会提高性能。
暂时是这样的:
$('#culetType').combobox();
$('#girdle').combobox();
$('#polishLinesIntensity').combobox();
$('#burnmarksIntensity').combobox();
$('#scratchesIntensity').combobox();
$('#damagesIntensity').combobox();
那么,如果我这样做会不会是一个性能改进:
$('#culetType, #girdle, #polishLinesIntensity, #burnmarksIntensity, #scratchesIntensity, #damagesIntensity').combobox();
除了阅读不愉快的事实。
我知道我可以给所有这些id
'sa class
,这将使我只需要一个电话。
那么这是否会提高性能?