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