标签:alert null mic false 2.x 对象 http request对象 ror
//创建XMLHttpRequest对象
var request = false;
try {
request = new XMLHttpRequest();
}
catch (trymicrosoft) {
try {
request = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (othermicrosoft) {
try {
request = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (failed) {
request = false;
}
}
}
if (!request) alert("Error initializing XMLHttpRequest!");
request.open("POST", "../Ashx/Upload.ashx?" + $F("upfile"), true);
request.onreadystatechange = function () { };
request.send(null);
标签:alert null mic false 2.x 对象 http request对象 ror
原文地址:http://www.cnblogs.com/sayshap/p/6073163.html