2012-07-28 114 views

回答

3
$.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/

+0

謝謝Addam Hardy。 – radha 2012-07-28 05:15:57

+0

是否需要任何其他外部.js文件。 – radha 2012-07-28 05:18:03

+0

它如何將值從一臺服務器傳遞給另一臺服務器?它從您的瀏覽器向服務器發送請求 – WizardZ 2012-07-28 05:24:46

相關問題