Javascript $http post方法响应“;“好的”;但在回复之后,没有任何更新
我想在下面的URL中发布一些JSON。虽然响应成功,但web中没有更新。原因可能是什么?如何解决这个问题Javascript $http post方法响应“;“好的”;但在回复之后,没有任何更新,javascript,jquery,ajax,http,Javascript,Jquery,Ajax,Http,我想在下面的URL中发布一些JSON。虽然响应成功,但web中没有更新。原因可能是什么?如何解决这个问题 $.ajax({ type: "POST", dataType: "json", async: true, data: JSON.stringify(dataaa), url: dataElementURL, headers: { "Authorization
$.ajax({
type: "POST",
dataType: "json",
async: true,
data: JSON.stringify(dataaa),
url: dataElementURL,
headers: {
"Authorization": "Basic " + btoa( instance.uname + ':' + instance.pword ),
'Accept': 'application/json',
'Content-type': 'application/json'
},
success: function (response) {
console.log('OrgUnit Import response: '+response.status)
},
error: function (request, textStatus, errorThrown) {
console.log(textStatus);
console.log(errorThrown);
console.log(request);
}
});
您在哪里更新内容?
success:function(response){console.log('OrgUnit Import response:'+response.status)},
处理程序刚刚打印到控制台,但stringfy数据应该发布到我提到的url。正确的?