AJAX发送请求

var xhr = null;
  if(window.XMLHttpRequest){
  	xhr = new XMLHttpRequest();//常用的浏览器
  }else{
  	xhr= new ActiveXobject("Microsoft.XMLHttp");//IE6
  }
  xhr.open("get","url");
  xhr.send();
posted on 2022-03-01 17:27  bug鸭~  阅读(17)  评论(0编辑  收藏  举报