project.js 575 B

1234567891011121314151617181920212223
  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.Bills = Bills.createNew(this);
  11. this.Rations = Rations.createNew(this);
  12. this.GLJ = GLJs.createNew(this);
  13. };
  14. // prototype用于定义public方法
  15. project.prototype.modify = function (modifyDatas, callback) {
  16. // To Do
  17. };
  18. return new project();
  19. }
  20. };