JavaScriptããããã¨æ¸ãããããã£ã¦ããæ¹ã§ãã¶ã¤ã³ãã¿ã¼ã³ãå®è£ ãã¦ã¿ãã³ã¼ãã¼ãã¨ã¯ãã£ã¦ããã¶ã¤ã³ãã¿ã¼ã³ã¨ãè¯ãããããªãã®ã§é©å½ã«è¦ããªããä½ãã ééã£ã¦ãç®æãã£ããã¤ã£ããã§ãããã¨ãããããã§ãã ããããããæç« ãæ¸ãè½åãæ¬ å¦ãã¦ãã®ã§ãã¶ã¤ã³ãã¿ã¼ã³ã£ã¦ä½ã ã¨ãããããã®ã¯ãã£ã¡åç §ã http://d.hatena.ne.jp/naoya/20050813/1123924312 JavaScriptã®ã³ã³ã¹ãã©ã¯ã¿ã¯Perlåæ§èªå¨ã«å®ç¾©ã§ãã¾ããreturnã§objectãè¿ãã¦ããã°ãnewã®çµæã¨ãã¦ããã¤ã使ãã¾ãã æ®éã«ã·ã³ã°ã«ãã³ãªã¯ã©ã¹ãå®è£ ããã«ã¯ãããªæãã ã¨æãã¾ãã function Singleton(){ var self = arguments.callee; if(self.instance == null){ this.
{{#tags}}- {{label}}
{{/tags}}