当前位置: 代码迷 >> JavaScript >> Javascript怎么发送一个Ajax请求
  详细解决方案

Javascript怎么发送一个Ajax请求

热度:124   发布时间:2012-10-16 09:57:37.0
Javascript如何发送一个Ajax请求?
代码:
new Ajax.Request('/your_url'),
{
method : ‘get',
onSuccess : function(transport){
var response = transport.responseText || “no response text”;
alert(”Success!”);
} ,
onFailure : function(){ alert('failure')}
});
  相关解决方案