var xmlHttp;
try
{
//Firefox Opera 8.0+ Safari
xmlHttp = new XMLHttpRequest();
}
catch (e)
{
//Internet Explorer 6.0+
try
{
xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e)
{
//Internet Explorer 5.5+
try
{
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e)
{
alert("Your browser does not support AJAX");
return false;
}
}
}
创建httpRequest对象
最新推荐文章于 2023-09-16 13:57:16 发布