if( typeof XMLHttpRequeat == "undefined" )
 XMLHtppRequest = function(){
  //ie 用ActiveXObject
   //XMLHttpRequest对象
   
    return new ActiveXOject(
      navigator.userAgent.indexOf("MSIE5")>=0 ?  "Microsoft.XMLHTTP" : "Msxml2.XMLHTTP" 
    );
};


//创建新的请求
 
var xml = new XMLHttpRequest();

//初始化请求
xml.open("GET","路径",true);

//建立连接并发送数据
xml.send();

相关文章:

  • 2022-12-23
  • 2022-02-04
  • 2022-12-23
  • 2021-10-29
  • 2021-04-16
  • 2021-10-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-14
  • 2021-12-03
  • 2021-06-22
  • 2023-02-25
  • 2021-07-26
  • 2022-12-23
相关资源
相似解决方案