摘要: function inheritPrototype(Cat, Animal) { Cat.prototype = Object.create(Animal.prototype); Cat.prototype.constructor = Cat; } function inheritPrototype(subType, superType) { var proto... 阅读全文
posted @ 2019-01-31 17:56 井凉一一 阅读(135) 评论(0) 推荐(0) 编辑