小白那里弄來的一段Javascript代碼,關于xmlhttp
var xmlHttp=null;
try
{
xmlHttp=new ActiveXObject("Msxml2.XMLHTTP")
}
catch(e)
{
try
{
xmlHttp=new ActiveXObject("Microsoft.XMLHTTP")
}
catch(oc)
{
xmlHttp=null
}
}
if ( !xmlHttp && typeof XMLHttpRequest != "undefined" )
{
xmlHttp = new XMLHttpRequest()
}
xmlHttp.open("POST", url, false);
xmlHttp.send("");
result = xmlHttp.responseText;Trackback: http://tb.blog.csdn.net/TrackBack.aspx?PostId=545812