js ajax

var ajax = new XMLHttpRequest();
ajax.open("get",'apply.php');
ajax.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
ajax.send(null);
ajax.onreadystatechange = function() {
  if ((ajax.readyState == 4) && (ajax.status == 200)) {
      //返回值
     var msg= ajax.responseText;
  }

猜你喜欢

转载自www.cnblogs.com/L2526/p/9950804.html
今日推荐