1
不知道我是否在這裏失去了一些東西。我想通過相同的方法運行多個全局變量。見下面jQuery通過一個方法傳遞多個變量
$('#pageMain .stuff, #pageMain .postFooter').each(function(){
$(this).vertCenter();
});
但不是使用全局變量:
$main, $titles, $footers
所以像...
$($main, $titles, $footers).each(). . .
但我試圖運行vertCenter();在他們每個人 – technopeasant
技術上不能說我$ footers.add($ main).add($ titles).each()? – technopeasant
是的。不過,如果你打算多次使用聚合版本,我不會這麼做...... – xandercoded