摘要:
1. 最常见的组合式继承 function Parent(p) { this.p = p; } Parent.prototype.get = function() { //注:prototype其中就是一个空对象{},但它是function特有的对象 return this.p; } functio 阅读全文
posted @ 2016-03-01 22:41
施小喵
阅读(200)
评论(0)
推荐(0)
|
摘要:
1. 最常见的组合式继承 function Parent(p) { this.p = p; } Parent.prototype.get = function() { //注:prototype其中就是一个空对象{},但它是function特有的对象 return this.p; } functio 阅读全文
posted @ 2016-03-01 22:41
施小喵
阅读(200)
评论(0)
推荐(0)
|