JSON结果没有进入AJAX

时间:2017-11-06 08:41:32

标签: android json cordova

JSON AJAXJSON上没有给出正确的结果(issuccess:failed),而邮递员会给出正确的结果(issuccess:true)

AJAX

中的JSON回复

image1

邮递员 var jData = {}; jData.username = $scope.mobile; jData.password = $scope.password; jData.entrytoken="aaad1323dfd"; var $resData = null; $.ajax({ url:url, type: "POST", ContentType: "application/json; charset=utf-8", data:JSON.stringify(jData) , dataType: "json", beforeSend: function () { }, success: function (response) { console.log(response); }, error: function (jqXHR, textStatus, errorThrown) { }, complete: function () { } }); 结果

image 2

mvn clean install tomcat7:run

0 个答案:

没有答案