摘要:
/*1、原型链继承*/function SuperType() { this.property = true;}SuperType.prototype.getSuperValue = function() { return this.property;};function subType... 阅读全文
摘要:
/*1、原型链继承*/function SuperType() { this.property = true;}SuperType.prototype.getSuperValue = function() { return this.property;};function subType... 阅读全文
摘要:
/*1、工厂模式*/function createPerson(name,age,job) { var o = new object(); o.name = name; o.age = age; o.job = job; o.setName = function(new... 阅读全文
|