mylomen-server/static/js/common/MyRecovery.js
shaoyongjun 0bd5a87973 to:sync
2024-11-05 22:43:34 +08:00

28 lines
444 B
JavaScript

"use strict";
/**
* 恢复实体
*/
define(function (require, exports, module) {
class MyRecovery {
constructor(data, func) {
this.data = data;
this.func = func;
}
getData() {
return this.data;
}
getFun() {
return this.func;
}
recovery() {
this.func();
}
}
//导出
module.exports= MyRecovery;
});