摘要:
/*1、原型链继承*/function SuperType() { this.property = true;}SuperType.prototype.getSuperValue = function() { return this.property;};function subType... 阅读全文
posted @ 2015-09-05 21:49
奔跑的犀牛edu
阅读(285)
评论(0)
推荐(0)
|
摘要:
/*1、原型链继承*/function SuperType() { this.property = true;}SuperType.prototype.getSuperValue = function() { return this.property;};function subType... 阅读全文
posted @ 2015-09-05 21:49
奔跑的犀牛edu
阅读(285)
评论(0)
推荐(0)
摘要:
/*1、工厂模式*/function createPerson(name,age,job) { var o = new object(); o.name = name; o.age = age; o.job = job; o.setName = function(new... 阅读全文
posted @ 2015-09-05 20:26
奔跑的犀牛edu
阅读(159)
评论(0)
推荐(0)
|