mylomen-server/static/js/common/MyRecovery.js

28 lines
444 B
JavaScript
Raw Normal View History

2024-11-05 22:43:34 +08:00
"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;
});