Contents

Develop
2013.12.16 15:50

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

Views 9620 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. [css] z-index에 설정할 수 있는 최대값?

    Date2013.12.20 CategoryDevelop Byhooni Views14791
    Read More
  2. [js] 이벤트 전파 3단계

    Date2013.12.18 CategoryDevelop Byhooni Views9994
    Read More
  3. [js] jQuery 치트 시트

    Date2013.12.18 CategoryDevelop Byhooni Views36302
    Read More
  4. [js] 순환참조에 의한 메모리 누수 관련

    Date2013.12.17 CategoryDevelop Byhooni Views10863
    Read More
  5. [js] jQjuery $ 활용

    Date2013.12.17 CategoryDevelop Byhooni Views8906
    Read More
  6. [js] jQuery 충돌 회피

    Date2013.12.17 CategoryDevelop Byhooni Views38375
    Read More
  7. [js] 객체 머지..

    Date2013.12.17 CategoryDevelop Byhooni Views8995
    Read More
  8. [js] jQuery 배열 루프(each)

    Date2013.12.17 CategoryDevelop Byhooni Views10024
    Read More
  9. [js] jQuery 셀랙터(selector) 요약

    Date2013.12.17 CategoryDevelop Byhooni Views9439
    Read More
  10. [js] jQuery 코드 작성시 편리한 HTML 템플릿

    Date2013.12.17 CategoryDevelop Byhooni Views33116
    Read More
  11. [js] Closure를 이용해 캡슐화..

    Date2013.12.16 CategoryDevelop Byhooni Views9620
    Read More
  12. 이어서 작업할 내용~

    Date2013.11.21 CategoryDevelop Byhooni Views0
    Read More
Board Pagination Prev 1 ... 15 16 17 18 19 20 21 22 23 24 ... 71 Next
/ 71