摘要: 1.第一种方式:原型链代码: function SuperType(){ this.property = true; } SuperType.prototype.getSuperValue = function(){ return this.property; }; function SubType(){ this.subproperty = false; } //继承了 SuperType SubType.prototype = new SuperType(); SubType.prototype.getSubValue = function(){ r... 阅读全文
posted @ 2013-10-26 18:32 wenwei 阅读(298) 评论(0) 推荐(0) 编辑