Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/79.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript $http post方法响应“;“好的”;但在回复之后,没有任何更新_Javascript_Jquery_Ajax_Http - Fatal编程技术网

Javascript $http post方法响应“;“好的”;但在回复之后,没有任何更新

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

我想在下面的URL中发布一些JSON。虽然响应成功,但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);
         }
     });

您在哪里更新内容?
success:function(response){console.log('OrgUnit Import response:'+response.status)},
处理程序刚刚打印到控制台,但stringfy数据应该发布到我提到的url。正确的?