Crockford uber方法中的陷阱
先来看Douglas Crockford的经典文章:Classical Inheritance in JavaScript. 此文的关键技巧是给Function.prototype增加inherits方法,代码如下(注释是我的理解) 阅读全文 »
先来看Douglas Crockford的经典文章:Classical Inheritance in JavaScript. 此文的关键技巧是给Function.prototype增加inherits方法,代码如下(注释是我的理解) 阅读全文 »