Posted in 面试题 onJanuary 26, 2015
代码:
new Ajax.Request(‘/your_url’),
{
method : ‘get’,
onSuccess : function(transport){
var response = transport.responseText || “no response text”;
alert(“Success!”);
} ,
onFailure : function(){ alert(‘failure’)}
});
new Ajax.Request(‘/your_url’),
{
method : ‘get’,
onSuccess : function(transport){
var response = transport.responseText || “no response text”;
alert(“Success!”);
} ,
onFailure : function(){ alert(‘failure’)}
});
Javascript如何发送一个Ajax请求
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Tags in this post...
Reply on: @reply_date@
@reply_contents@