最贵的泡面:错误:\'activexobject\' 未定义是什么原因?

来源:百度文库 编辑:中科新闻网 时间:2024/04/29 16:44:47
function startit()
{
var xmlhttp=null;
xmlhttp=new activexobject("Microsoft.XMLHTTP");
xmlhttp.onreadystatechange=seeit;
xmlhttp.open("Get","abc.xml",true);
xmlhttp.send(null);
}
function seeit()
{
alert(xmlhttp.responsetext);
}
</script>
我在调用这个startit()之后出现javascript错误,说activeobject未定义,是什么原因??要如果处理呢?????

浏览器不支持 只有IE才支持