test.js 440 B

12345678910111213141516171819
  1. output = {};
  2. try {
  3. eval(dfs.read("/script/matrix/utils/ajs/JsonImporterFuncs.js"));
  4. output.result = runServerJS("/matrix/utils/ajs/InitJsonImporter.js", {name:"change"});
  5. } catch (e) {
  6. if (typeof (e) == "object") {
  7. output.error = e;
  8. } else if (typeof (e) == "string") {
  9. output.error = "错误:" + e;
  10. } else {
  11. output.error = JSON.stringify(e);
  12. }
  13. }
  14. // 返回输出信息
  15. OUTPUT = output;