12345678910111213141516171819202122232425262728 |
- /**
- * Created by zhang on 2018/2/24.
- */
- let ration_installation = {
- createNew: function (project) {
- // 用户定义private方法
- var tools = {};
- // 所有通过this访问的属性,都不应在此单元外部进行写入操作
- var ration_installation = function (proj) {
- // this.project = proj;
- this.datas = [];
- var sourceType = ModuleNames.ration_installation;
- this.getSourceType = function () {
- return sourceType;
- }
- proj.registerModule(ModuleNames.ration_installation, this);
- };
- // prototype用于定义public方法
- ration_installation.prototype.loadData = function (datas) {
- this.datas = datas;
- };
- return new ration_installation(project);
- }
- };
|