Javascriptã§ãããã¿ã¤ããç¶æ¿ããã«ã¯ function newClass(){ superClass.apply(this, arguments); } newClass.prototype = new superClass(); // superClassãç¶æ¿ var newObject = new newClass(); console.log(newObject instanceof superClass); // true ãããªã³ã¼ããæ¸ãã°ããããã ãã©ã ããã ã¨superClassãªãã¸ã§ã¯ããä½ã£ã¦ããã¨ãããã¹ãã¼ããããªãã newClass.prototype = superClass.prototype; // superClassãç¶æ¿ ããã ã¨ä½è¨ãªãªãã¸ã§ã¯ãã¯ã¤ãããªããã©ã newClassã®prototypeãæ¡å¼µããã¨superClas
{{#tags}}- {{label}}
{{/tags}}