摘要: 一.继承: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. 类式继... 阅读全文
posted @ 2013-09-03 16:34 郎涛 阅读(263) 评论(0) 推荐(0) 编辑