Private Members in JavaScript [翻訳]JavaScriptã«ããããã©ã¤ãã¼ãã¡ã³ã(COLLECTION & COPY) ä¸è¨ã®è¨äºã«åºæ¿ãåãã¦ãprototype.jsã§ãã©ã¤ãã¼ãã¡ã½ãããæã¤ã¯ã©ã¹ãä½ãæ¹æ³ãèãã¦ã¿ã¾ããã JavaScriptã®ã¯ãã¼ã¸ã£ãå©ç¨ãã¦ã¾ãããå ·ä½çã«ã¯æ¬¡ã®ããã«ãªãã¾ãã 1: //Animalã¯ã©ã¹ä½æ 2: var Animal = Class.create(); 3:  4: //Animalã¯ã©ã¹ãã£ã¼ã«ãè¨å® 5: Animal.MALE = 0; 6: Animal.FEMALE = 1; 7: Animal.SEXTYPE = ['Male','Female']; 8:  9: //Animalã¯ã©ã¹è¨å® 10: Animal.prototype = { 11: initialize : func
{{#tags}}- {{label}}
{{/tags}}