는 내가 jQuery를 책이 건너 온 : 나는 쉽게 읽을 코드의 많은 부분을 제거jquery 함수의 점 표기법은 무엇입니까?
$(elems).mouseenter(function(e) {
$(this).css("opacity", 0.5);
}).mouseout(function(e) {
$(this).css("opacity", 1.0);
})
다음이 가지고 : 당신이 할 수있는
$(elems).mouseenter(function(e)).mouseout(function(e))
그것은 일반적으로 것 같아?
$(elems).mouseenter(function(e)).mouseout(function(e)).mouseSOMETHING1(function(e))
. 함수를 연결 하시겠습니까?
또한 나는이 말에이 코드 파산하는 경우 :
$(elems).mouseenter(function(e) {$(this).css("opacity", 0.5);});
$(elems).mouseout(function(e) {$(this).css("opacity", 1.0);});
이 같은인가를?
감사합니다, 짐
로 작성하는 확실히 동일합니다
난 내가 물어 봤다 질문의 문제에 투표를했다 몰랐다. 나는 항상 다른 사람들이 투표했다고 생각했다. 이 정보를 주셔서 감사합니다. 이전 질문으로 돌아가서이 물고기 갈고리를 찾으십시오. –