12345678910111213141516171819202122232425 |
- /**
- * Created by Mai on 2017/4/1.
- */
- var PROJECT = {
- createNew: function () {
- // 定义private方法
- var tools = {};
- // 所有通过this访问的属性,都不应在此单元外部进行写入操作
- var project = function () {
- this.mainTree = cacheTree.createNew(this);
- this.Bills = Bills.createNew(this);
- this.Rations = Rations.createNew(this);
- this.GLJ = GLJs.createNew(this);
- };
- // prototype用于定义public方法
- project.prototype.modify = function (modifyDatas, callback) {
- // To Do
- };
- return new project();
- }
- };
|