同源政策,cross browser ajax的處理方式
1. put below in your .php file 2.use jsonp as following $.ajax({ url: 'http://...................., crossDomain: true, dataType: 'jsonp', data:{ uname: $('input#A1').val(), uphone: $('input#A2').val(), uemail: $('input#A3').val(), callback: json_callback } }).done(function(data){ });
No comments:
Post a Comment