$.ajax({ url:"http://test.xxxx.com/api/index", crossDomain: true dataType:'json', type:'POST', data:jsonData, jsonp:'callback', success:function(result) { alert(result); }, timeout:3000 });