JavaScript console.log causes error: “Synchronous XMLHttpRequest on the main thread is deprecated…”

后端 未结 21 1726
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-22 09:26

I have been adding logs to the console to check the status of different variables without using the Firefox debugger.

However, in many places in which I add a

21条回答
  •  抹茶落季
    2020-11-22 09:32

    I have been looking at the answers all impressive. I think He should provide the code that is giving him a problem. Given the example below, If you have a script to link to jquery in page.php then you get that notice.

    $().ready(function () {
        $.ajax({url: "page.php",
            type: 'GET',
            success: function (result) {
            $("#page").html(result);
       }});
     });
    

提交回复
热议问题