4c7df69965b129319020cd79e7dca6bc63cad96c.svn-base
657 Bytes
var toolIdMLC = "";
//获取工具插件ID
var fileName = "importMLC.js";
var isLoadMLC = false;
var scripts = document.getElementsByTagName("script");
for (var i = 0; i < scripts.length; i++) {
var src = scripts[i].src;
if (src.indexOf(fileName) !== -1) {
src = src.substring(src.lastIndexOf(fileName+ "?") + (fileName.length + 1));
var array = src.split("&");
for (var j = 0; j < array.length; j++) {
var finalObj = array[j].split("=");
if (finalObj[j] == "toolId")
toolIdMLC = finalObj[j + 1]; //iD
}
}
}
loadjscssfile("/js/MapLocation.js", "js", toolIdMLC); //ID