$.ajax({ url: url,type: 'get',async:false,headers : {'Accept-Encoding' : 'gzip,deflate'},data:data,dataType: 'jsonp',jsonp:"jsonCallback",jsonpCallback:"jsonCallback",cache:true,success: function(obj){ console.log(obj); },error:function(){ console.log("error"); } });
参考文章:
http://www.cnblogs.com/koleyang/p/5146498.html