摘要: 1 function Person(name, age) { 2 this.name = name; 3 this.age = age; 4 } 5 function Male(name, age) { 6 Person.apply(this, arguments); 7 this.sex = '男'; 8 } 9 10 Male.prototype.showSex = function(){11 console.log(this.sex);12 }13 function F(){}14 F.prototype = Person.prototype;1... 阅读全文
posted @ 2013-08-02 10:32 Jackin 阅读(226) 评论(0) 推荐(0) 编辑