摘要: 方式一:原型链继承(prototype模式) function Animal(){ this.species = "动物";}function Cat(name,color){ this.name = name; this.color = color;}Cat.prototype = new Animal();//核心Cat.prototype.constructor = Ca... 阅读全文
posted @ 2017-05-30 21:09 enginex 阅读(145) 评论(0) 推荐(0) 编辑