가능한 중복 :
For the function (function($){})(), I’ve seen it with the word jQuery in it, why is that?자바 스크립트 구문과 jQuery를 소스
누군가가 jQuery를 소스 파일에 사용되는 다음 구문을 설명 할 수 있습니까? 나는 jQuery를 배우며 jquery.ui.widget을 작성하려고한다.
(function ($)
{
... code ...
} (jQuery));
jQuery를 사용하는 동안 이것은 실제로 자바 스크립트 질문 일뿐입니다.
감사합니다, 크레이그
어제부터 비슷한 질문보기 : http://stackoverflow.com/questions/3090284/for-the-function-function-ive-seen-with-the-word-jquery-in-it-why – CMS
실제로 자바 스크립트 관련, http://stackoverflow.com/questions/1643321/javascript-why-the-anonymous-function-wrapper를 참조하십시오. –