Contents

Develop
2013.12.16 15:50

[js] Closure를 이용해 캡슐화..

Views 9594 Comment 0
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
?

Shortcut

PrevPrev Article

NextNext Article

Larger Font Smaller Font Up Down Go comment Print
아래 글로벌 함수 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);



?

  1. [ios] In App Purchase 개발

  2. 이어서 작업할 내용~

  3. [js] Closure를 이용해 캡슐화..

  4. [js] jQuery 코드 작성시 편리한 HTML 템플릿

  5. [js] jQuery 셀랙터(selector) 요약

  6. [js] jQuery 배열 루프(each)

  7. [js] 객체 머지..

  8. [js] jQuery 충돌 회피

  9. [js] jQjuery $ 활용

  10. [js] 순환참조에 의한 메모리 누수 관련

  11. [js] jQuery 치트 시트

  12. [js] 이벤트 전파 3단계

Board Pagination Prev 1 ... 46 47 48 49 50 51 52 53 54 55 ... 71 Next
/ 71