原型链

function SuperType(){ this.property = true; } SuperType.prototype.getSuperValue = function() { return this.property; } //继承 SubType.prototype = new SuperType();
相关文章
相关标签/搜索