js如何实现继承及其优缺点

第一种,prototype的方式:app //父类 function person(){ this.hair = 'black'; this.eye = 'black'; this.skin = 'yellow'; this.view = function(){ return this.hair + ',' + this.ey
相关文章
相关标签/搜索