$.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);
}
});
参照: http://api.jquery.com/jQuery.ajax/