inherit prototype methods from other classes without overriding own prototype methods
问题 Is there a better way of having a class inherit prototype methods from another class and still be able to define new prototype methods on the class that inherits than this: var ParentConstructor = function(){ }; ParentConstructor.prototype = { test: function () { console.log("Child"); } }; var ChildConstructor = function(){ ParentConstructor.call(this) }; ChildConstructor.prototype = { test2: "child proto" }; var TempConstructor = function(){}; TempConstructor.prototype = ParentConstructor