核心提示:vue的createComponent实现继承(代码) cat.prototype = Object.create(animal.prototype);cat.prototype.constructo...
vue的createComponent实现继承(代码)
cat.prototype = Object.create(animal.prototype); cat.prototype.constructor = cat; //< ---- add this
vue的createComponent实现继承(代码)
cat.prototype = Object.create(animal.prototype); cat.prototype.constructor = cat; //< ---- add this