Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/71.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript 如何将这个工作的JS代码转换为JQUERY_Javascript_Jquery - Fatal编程技术网

Javascript 如何将这个工作的JS代码转换为JQUERY

Javascript 如何将这个工作的JS代码转换为JQUERY,javascript,jquery,Javascript,Jquery,在jQuery中,您已经完成了所有操作 var xmlHttp; function RefreshORP(eventTarget, eventArgument) { xmlHttp = GetXmlHttpObject(); if(xmlHttp == null) { return true; } xmlHttp.onreadystatechange = StateChanged; var params = GetFormParam(eventTarget

在jQuery中,您已经完成了所有操作

var xmlHttp;

function RefreshORP(eventTarget, eventArgument)
{

  xmlHttp = GetXmlHttpObject();
  if(xmlHttp == null)
  {
    return true;
  }

  xmlHttp.onreadystatechange = StateChanged;

  var params = GetFormParam(eventTarget,eventArgument); 

  xmlHttp.open("POST","/contact.jsp",true);

  xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");

  xmlHttp.setRequestHeader("ajaxcall", "true");

  xmlHttp.send(params);
}

jQuery还将设置所有适当(并且以某种方式标准化)的请求头。

在jQuery中,您已经完成了所有操作

var xmlHttp;

function RefreshORP(eventTarget, eventArgument)
{

  xmlHttp = GetXmlHttpObject();
  if(xmlHttp == null)
  {
    return true;
  }

  xmlHttp.onreadystatechange = StateChanged;

  var params = GetFormParam(eventTarget,eventArgument); 

  xmlHttp.open("POST","/contact.jsp",true);

  xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");

  xmlHttp.setRequestHeader("ajaxcall", "true");

  xmlHttp.send(params);
}
jQuery还将设置所有适当的(并且以某种方式标准化的)请求头