Javascript如何发送一个Ajax请求
2023-07-06
代码:
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请求2023-07-06 代码: new Ajax.Request(‘/your_url’), method : ‘get’, onSuccess : function(transport) var response = transport.responseText || “no response text”; alert(“Success!”); , onFailure : function() alert(‘failure’) ); 相关内容: |