s94-web
Version:
常用的web工具方法封装---牧人与鱼
20 lines (18 loc) • 889 B
JavaScript
var s94_web = (function (global){
if (typeof global.require !== 'function'){
try{''.join();}catch(err){
var url_reg = /(https?|file):\/\/[^\s:]+/;
var path = err.stack.match(url_reg)[0];
var path2 = path.replace('s94-web/s94_web.browser.js', 's94-js/s94.browser.js');
document.write(`<script src="${path2}"></script><script src="${path}"></script>`);
return ;
}
}
let s94_web = require('./cjs/s94_web.js');
let _require = global.require;
_require.cache[s94_web.filename] = _require.cache['s94-web'] = new _require.Module(s94_web.filename, '', s94_web);
return s94_web;
})(typeof globalThis !== 'undefined' ? globalThis :
typeof self !== "undefined" ? self :
typeof window !== "undefined" ? window :
typeof global !== "undefined" ? global : {});