摘要: 上一段组合继承的代码: function SuperType(name){ this.name = name; this.colors = ["red", "blue", "green"]; } <!-- 关键点1 --> SuperType.prototype.sayName = function 阅读全文
posted @ 2017-10-30 20:50 清源如风 阅读(141) 评论(0) 推荐(0) 编辑