hi-ucs/front/public/leaflet/libs/iclient8c/examples/js/plottingPanel/PlottingPanel.Include.js

32 lines
1018 B
Vue
Raw Normal View History

2022-06-14 09:32:49 +08:00
(function() {
// var isWinRT = (typeof Windows === "undefined") ? false : true;
var r = new RegExp("(^|(.*?\\/))(PlottingPanel.Include\.js)(\\?|$)"),
s = document.getElementsByTagName('script'),
src, m, baseurl = "";
for(var i=0, len=s.length; i<len; i++) {
src = s[i].getAttribute('src');
if(src) {
var m = src.match(r);
if(m) {
baseurl = m[1];
break;
}
}
}
function inputScript(inc){
// if (!isWinRT) {
var script = '<' + 'script type="text/javascript" src="' + inc + '"' + '><' + '/script>';
document.writeln(script);
// } else {
// var script = document.createElement("script");
// script.src = inc;
// document.getElementsByTagName("HEAD")[0].appendChild(script);
// }
}
//加载类库资源文件
function loadSMLibs() {
inputScript(baseurl+'PlottingPanel.js');
}
loadSMLibs();
})();