2
가능한 중복 : JQuery와 소스 코드 상태의
What does jQuery.fn mean?이 jQuery.fn의 목적은 무엇입니까
부 :
jQuery.fn = jQuery.prototype = {
이 주어는
않을 것$.fn.adamPlugin = function(options) {
return this.each(function() { });
};
는 그렇다면, $.fn
의 점은 무엇
$.prototype.adamPlugin = function(options) {
return this.each(function() { });
};
동일? 프로토 타입에 물건을 추가하는 것은 JavaScript에서 매우 일반적이므로 jQuery 사람들이이를 추상화하려는 이유를 이해할 수 없습니다.
나는 짧은 손으로 도서관을 더 작게 만들 수 있다고 생각한다 ... 또한 그들은 적은 _ _ _ _ _의 큰 지지자라고 들었다. – canon
왜 $ for jQuery입니까? 다른 하나를 교체하는 것은 동일합니다. – pimvdb
Paul Irish는 조금 [여기] (http://paulirish.com/2011/11-more-things-i-learned-from-the-jquery-source/)에 대해서도 설명합니다. – Andrew