$.ajax({ type: "GET", url: "http://110.188.70.244:8090/idp/restful/getIDPToken", dataType: 'jsonp', data: { appId: 'xxhxm', remoteIp: '127.0.0.1' }, jsonp: 'jsonpCallback', jsonpCallback: 'successCallback', success: function(response){ console.log(response); }, error:function(jqXHR, textStatus, errorThrown){ console.log(jqXHR); console.log(textStatus); console.log(errorThrown); } }); function successCallback(r){ console.log(222) }