Skip to content

cavacn/eabcs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

#Eabcs#

##How to use##

npm install eabcs

##code##

require("eabcs");

Eabcs.getInstance().init({
	//configs....
});

//define model
Eabcs.getInstance().model("Demo",{
	//schema,mongoose's schema
	//such as :  uname:{type:String}
	name:{type:String}
},{
	//the class's methods and variable
	demo:function(){
		console.log("method:demo",this.name);
	}
});
//get model
var Demo = Eabcs.getInstance().model("Demo");

var demo = new Demo({name:"demo"});

demo.demo();

## method:demo	demo

About

基于oop4js的模块实现

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published