当前位置: 代码迷 >> 跨浏览器开发 >> 为什么chrome无法创建request请求.解决办法
  详细解决方案

为什么chrome无法创建request请求.解决办法

热度:3823   发布时间:2013-02-26 00:00:00.0
为什么chrome无法创建request请求..
var xmlhttp = false;
if(window.ActiveXObject){alert('666666');
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}else if(window.XMLHttpReuqest){
xmlhttp = new XMLHttpRequest();
  alert('77777');

}
只在IE下有反应....
求教...

------解决方案--------------------------------------------------------
你 的拼写错误导致的 

else if(window.XMLHttpRequest){
不是
else if(window.XMLHttpReuqest){
  相关解决方案