객체 :이이 커플의 jQuery 선택기에서 여러 이벤트를 바인딩하는 방법이다
$('#selector1,.selector2').bind('event', function (e, ui) {
// Stuff
});
그러나! 미리 선언 된 jQuery 객체를 어떻게 바인딩 할 것인가? 예 :
jSelector1,jSelector2.bind(...);
을도 수행합니다 :
var jSelector1 = $('#selector1');
var jSelector2 = $('.selector2');
이 있으므로 사용자의 컴퓨터에서 다음이 작동하지 않는
이$jSelector1,$jSelector2.bind(...);
($jSelector1,$jSelector2).bind(...);
(jSelector1,jSelector2).bind(...);
저는 jAllSelectors = $ ('# selector1, .selector2')를 찾고 있지 않습니다; – Kyle