摘要:
一.继承:1. 原型继承(推荐): 参考: Douglas Crockford: http://javascript.crockford.com/prototypal.htmlif (typeof Object.create !== 'function') { Object.create = function (o) { function F() {} F.prototype = o; return new F(); };}var newObject = Object.create(oldObject);2. 类式继... 阅读全文