class:简单的javascript类库

时间:2021-07-05 23:53:28
【文件属性】:
文件名称:class:简单的javascript类库
文件大小:3KB
文件格式:ZIP
更新时间:2021-07-05 23:53:28
JavaScript 类库 一个简单的类库 示例用法: var Class = require ( 'class' ) ; var Animal = Class . extend ( function Animal ( ) { console . log ( 'Animal:constructor' ) ; this . _construct ( ) ; var type = 'walk' ; this . getWalkType = function ( ) { return type ; } ; return this ; } ) ; Animal . prototype . walk = function ( ) { console . log ( 'Walking with' , this . getWalkType ( ) )
【文件预览】:
class-master
----LICENSE(1KB)
----README.md(1KB)
----.gitignore(587B)
----index.js(942B)
----package.json(424B)

网友评论