Develop
2013.12.16 15:50
[js] Closure를 이용해 캡슐화..
조회 수 10309 댓글 0
아래 글로벌 함수 utility는 누구나 사용할 수 있는 함수
var utility = function(){ ... }; //window.jQuery = function(selector, context){ w.jQuery = function(selector, context){ utility(); };
Closure를 이용하여 캡슐화
//(function(window, undefined){ (function(w, undefined){ var utility = function(){ }; //window.jQuery = function(selector, context){ w.jQuery = function(selector, context){ utility(); }; })(window);
-
[oracle] SQL문 실행 방법 3가지
-
CentOS 6.5 USB 설치
-
[js] 이벤트 전파 3단계
-
[js] jQuery 치트 시트
-
[js] 순환참조에 의한 메모리 누수 관련
-
[js] jQjuery $ 활용
-
[js] jQuery 충돌 회피
-
[js] 객체 머지..
-
[js] jQuery 배열 루프(each)
-
[js] jQuery 셀랙터(selector) 요약
-
[js] jQuery 코드 작성시 편리한 HTML 템플릿
-
[js] Closure를 이용해 캡슐화..