developer tip

jQuery에서 $ .fn은 무엇을합니까?

optionbox 2020. 11. 1. 17:38
반응형

jQuery에서 $ .fn은 무엇을합니까? 평균?


jQuery에서 $ .fn은 무엇을합니까? 평균? 나는 이것을 구글에서 찾았지만 구체적인 예를 찾을 수 없었다.

$.fn.something = function{}

그것은 당신이 자신의 기능으로 jQuery를 확장 할 수있게 해준다.

예를 들면

$.fn.something = function{}

당신이 사용할 수 있습니다

$("#element").something()

$.fnjQuery.fnGoogle 검색을 더 쉽게 할 수있는 동의어이기도 합니다.

jQuery Plugins / Authoring 참조


이것은 여기에서 몇 가지 자세히 다루었습니다.

왜 jQuery가 이것을 하는가 : jQuery.fn.init.prototype = jQuery.fn?

그러나 그것의 짧은 즉 $.fn별칭입니다$jQuery.prototype


플러그인 / 저작 참조

참고 URL : https://stackoverflow.com/questions/3090230/in-jquery-what-does-fn-mean

반응형