0
可能重复:
Pass data from jQuery to PHP for an ajax post如何使用jquery和php将ajax post请求从一台服务器传递到另一台服务器?
我如何通过使用AJAX从一台服务器到另一个服务器的值,jQuery的
可能重复:
Pass data from jQuery to PHP for an ajax post如何使用jquery和php将ajax post请求从一台服务器传递到另一台服务器?
我如何通过使用AJAX从一台服务器到另一个服务器的值,jQuery的
$.ajax({
url:'/url/on/other_server',
type: 'POST',
contentType:"application/x-www-form-urlencoded",
data: '{"key":"value"}',
success: function(data, status) {
console.log(status);
},
error: function(xhr, desc, error) {
console.log(error);
}
});
谢谢Addam Hardy。 – radha 2012-07-28 05:15:57
是否需要任何其他外部.js文件。 – radha 2012-07-28 05:18:03
它如何将值从一台服务器传递给另一台服务器?它从您的浏览器向服务器发送请求 – WizardZ 2012-07-28 05:24:46