原型鏈

function SuperType(){ this.property = true; } SuperType.prototype.getSuperValue = function() { return this.property; } //繼承 SubType.prototype = new SuperType();
相關文章
相關標籤/搜索