const isWeb = location.href.indexOf("StressTest") > -1; var hostname = isWeb ? "" : location.hostname; var port = isWeb ? "" : location.port; var web = isWeb ? "/StressTest" : ""; var iisHost = "http://" + hostname + ":" + port + web; const config = { ifreamLogin: iisHost + "/mapscreen/index.html", jsonUrl: iisHost + "/data/json/", // 线面军标配置"10-26400-1", xmjb:["10-35000-1","10-33400-1","10-33401-1","10-33402-1","10-33403-1","10-33404-1", "10-35000-0","10-34400-1","10-34500-1","10-34501-1","10-34700-1","10-34900-1","10-34901-1", "10-29100-1"], };