project.js 631 B

12345678910111213141516171819202122232425
  1. /**
  2. * Created by Mai on 2017/4/1.
  3. */
  4. var PROJECT = {
  5. createNew: function () {
  6. // 定义private方法
  7. var tools = {};
  8. // 所有通过this访问的属性,都不应在此单元外部进行写入操作
  9. var project = function () {
  10. this.mainTree = cacheTree.createNew(this);
  11. this.Bills = Bills.createNew(this);
  12. this.Rations = Rations.createNew(this);
  13. this.GLJ = GLJs.createNew(this);
  14. };
  15. // prototype用于定义public方法
  16. project.prototype.modify = function (modifyDatas, callback) {
  17. // To Do
  18. };
  19. return new project();
  20. }
  21. };