【文件属性】:
文件名称:inherit-helper:继承帮手
文件大小:4KB
文件格式:ZIP
更新时间:2021-06-12 10:51:58
JavaScript
继承帮手
简单继承
例子
var helper = require ( 'inherit-helper' ) ;
var Parent = helper . create (
function ( name ) {
this . name = name ;
} ,
function ( proto ) {
proto . getName = function ( ) {
return this . name ;
}
}
) ;
var Child = Parent . extend (
function ( name , age ) {
this . age = age ;
} ,
function ( proto ) {
pro
【文件预览】:
inherit-helper-master
----.gitignore(14B)
----package.json(511B)
----.travis.yml(38B)
----LICENSE(1KB)
----index.js(1KB)
----test.js(1KB)
----README.md(1KB)