"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; });