代码拉取完成,页面将自动刷新
/*! (C) Andrea Giammarchi
* @link https://github.com/WebReflection/require_client
*/
var require = function (global, Function, config) {
//:dev //will be removed at build time
function grab(path, normalize) {
if (normalize) {
return (config.path + path) + ".js";
//return (config.path + path).replace(/\.js$/, "") + ".js";
} else {
var xhr = new XMLHttpRequest;
xhr.open("get", grab(path, TRUE), !TRUE);
xhr.send(null);
return xhr.responseText;
}
}
//dev:function grab(path, normalize) {return normalize ? path : modules[path]}
function retrieve(path) {
var
exports = cache[path] = {},
module = {
id: path,
parent: global,
filename: grab(path, TRUE),
web: TRUE // require client
}
;
module[EXPORTS] = exports;
Function(
"global", "module", EXPORTS,
(config.strict ?
"'use strict';" : ""
) + grab(path)
).call(exports,
global, module, exports
);
hasOP.call(
exports = module[EXPORTS],
LOADED
) || (exports[LOADED] = TRUE);
return exports;
}
function require(module) {
return hasOP.call(cache, module) ?
cache[module] :
cache[module] = retrieve(module)
;
}
var
EXPORTS = "exports",
LOADED = "loaded",
TRUE = !0,
cache = {},
hasOP = cache.hasOwnProperty,
modules = {production:1},
noConflicts = global.require
;
require._ = function _(enrich) {
for(var key in enrich) {
hasOP.call(enrich, key) && (
modules[key] = enrich[key]
);
}
return require;
};
require.config = config;
require.main = global;
return noConflicts ? noConflicts._(modules) : require;
}(this, Function, {strict:true, path:"js/"});
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。