28 lines
444 B
JavaScript
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;
|
||
|
});
|