文件名称:extend-with-super:使用函数属性扩展对象字面量以具有引用原始函数的 _super 方法,而不是覆盖它
文件大小:13KB
文件格式:ZIP
更新时间:2024-07-11 13:52:06
JavaScript
扩展与超级 快速入门示例和说明 // Extend object literals with function properties to have a // _super method that references the original function, instead // of overwriting it. // (No dependencies, but borrowed methods from underscore.js.) var sampleObj = { funcProp : function ( ) { return 'Hello' ; } } ; var sampleObj2 = { funcProp : function ( ) { var originalMethod = this . _super ( ) ; r
【文件预览】:
extend-with-super-develop
----.travis.yml(142B)
----benchmark()
--------extend-with-super.js(2KB)
----package.json(2KB)
----test()
--------node()
--------shared()
--------browser()
----.bowerrc(56B)
----LICENSE(1022B)
----dist()
--------extend-with-super.js(2KB)
--------extend-with-super.min.js(2KB)
----Gruntfile.js(3KB)
----appveyor.yml(260B)
----.gitignore(107B)
----CHANGELOG.md(932B)
----lib()
--------extend-with-super.js(1KB)
----README.md(3KB)
----bower.json(1KB)