constructorï¼ããããã£ï¼ã¨prototype.constructorï¼ããããã£ï¼ã¯ å¥ç©ã ã¨æã£ã¦ãããã©ããã£ã±ãåãç©ã ã¨ãããã¤ã¤ããã£ã±ãéãã®ãï¼ã¨ ããããããªããªã£ã¦ãããï¼ç¹ã«ç¶æ¿ã¨ããããã¨ããå ´åã«ï¼ ã®ã§å°ã調ã¹ã¦ã¿ãã ï¼ã¡ãªã¿ã«SpiderMonkeyãã¤ãã£ã¦è©¦ãã¦ããï¼ constructorããããã£ã¨ã¯ ãµã¤æ¬ã«ããã¨ã ãªãã¸ã§ã¯ãã®åæåã§ä½¿ç¨ãããã³ã³ã¹ãã©ã¯ã¿é¢æ°ãåç §ããã ã¨ããã var a = new Array(); a.constructor == Array;//>trueã«ãªã 確ãã«ãArrayãªãã¸ã§ã¯ãã§newããå¤æ°aã®constructorããããã£ã¯ Arrayã«ãªã£ã¦ããããã ã ããããArrayã®constructorããããã£ã£ã¦ãªãã ãï¼ ããã§æ°ã«ãªã£ãã®ã¯ãnewãã¦ãªãArrayãªãã¸ã§ã¯ã
{{#tags}}- {{label}}
{{/tags}}