- 博客(1)
- 资源 (1)
- 收藏
- 关注
原创 google closure继承机制
首先有两个主要的function :1)goog.base 2) goog.inherits 通过goog.inherits实现父类和子类的关系。 inherits传入了两个参数子类函数名和父类函数名,函数的原形链 function tempCtor() {}; tempCtor.prototype = parentCtor.prototype; childCtor.s
2015-12-17 15:55:21 402
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人