jQuery 모듈 패턴
//네임스페이 정의 if (typeof (CompanyName) === 'undefined') { CompanyName = {}; } //네임스페이스 App이름 CompanyName.AppName = (function ($) { // 변수의 연속 선언 var _first = function () { // Important to always start with "var" }, _second = function () { // Chained ( ...}, ) so it doesnt need "var" }, _third = "Just a var", // Variables just ends with , _four = "Another var"; // Closing the chain with ; var _anothe..
웹개발/Jquery
2011. 8. 12. 17:52