重複の可能性:
$() の 2 番目の引数は何を意味しますか?
私はjQueryを使用することがありますが、時々これを見ます:
$(argument1, argument2).doSomething();
2 番目の引数でフィルタリングするためのドキュメントはどこにありますか?
編集:
私はそれを使用するこの方法について話している:
var t=0; // the height of the highest element (after the function runs)
var t_elem; // the highest element (after the function runs)
$("*",elem).each(function () {
$this = $(this);
if ( $this.outerHeight() > t ) {
t_elem=this;
t=$this.outerHeight();
}
});
知らせ:
$("*",elem)
私は話しているのではありません
$("a,b,span")
フィルタリングの方法。私は今それをよくします。