function Check(path) {
var url = path;
var xmlhttp = jb();
try {
xmlhttp.open("GET", url, false);
xmlhttp.send();
if (xmlhttp.readyState == 4) {
if (xmlhttp.status == 404) {
alert("此时间区间暂无数据");
}
else {
window.open(path, "_self");
}
}
} catch (e) {
alert("此时间区间暂无数据");
}
}
function jb() {
var A = null;
try {
A = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (oc) {
A = null;
}
if (!A && typeof XMLHttpRequest != "undefined") {
A = new XMLHttpRequest();
}
return A;
}
浙公网安备 33010602011771号