我想将一些JSON发布到Following中的URL中。尽管响应成功,但Web中没有更新。它可能是什么原因?如何解决这个问题?
$.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);
}
});