0ac72e1c919d0d85b2f9f2aff5f964a35956abe7.svn-base
679 Bytes
var toolIdMM = "";
//获取工具插件ID
var fileName = "importMM.js";
var isLoadMM = 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")
toolIdMM = finalObj[j + 1]; //获取动态生成的tool的id号
}
}
}
loadjscssfile("/js/MapMeasure.js", "js", toolIdMM);