Require.js javascript文件格式

时间:2016-08-24 04:57:59

标签: javascript jasper-reports require visualize

我正在尝试通过require具有如下结构来加载js文件。

虽然它正在加载并按预期工作,但我想询问文件格式是否适合加载require?

!function(global){

  //js content

}(this)

visualize.__jrsConfigs__["userLocale"] = "en";

visualize.__jrsConfigs__["avaliableLocales"] = ["de", "en", "es", "fr", "it", "ja", "ro", "zh_TW", "zh_CN"];

if (typeof define === "function" && define.amd) {
  define(["reporting"], function () {
     return visualize;
  });
}

var currentThemePath = "_themes/AEFCB57D/theme.css".split("/").slice(0, -1);

0 个答案:

没有答案