c11005e962087dee5b938b1cb1112b2c51411491.svn-base 656 Bytes
var toolIdML = "";
//获取工具插件ID
var isLoadML = false;
var fileName = "importMLCtrl.js";
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")
                toolIdML = finalObj[j + 1]; //iD
        }
    }
}
loadjscssfile("/js/MapLevelCtr.js", "js", toolIdML); //ID