디자인패턴 (1) 썸네일형 리스트형 Mastering Design Patterns (1) Modules There is no first class support for namespaces. To create modules just attach an object to the global namespace. Westeros = {} This object is, by default, attached to the top-level object, so we need not do anything more than that. This allows you to spread your definitions over a number of files. Westeros = Westeros || {} Westeros.Castle = function(name) { this. name }; // constructor W.. 이전 1 다음