久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <bdo id='8zEf5'></bdo><ul id='8zEf5'></ul>
  • <small id='8zEf5'></small><noframes id='8zEf5'>

    <i id='8zEf5'><tr id='8zEf5'><dt id='8zEf5'><q id='8zEf5'><span id='8zEf5'><b id='8zEf5'><form id='8zEf5'><ins id='8zEf5'></ins><ul id='8zEf5'></ul><sub id='8zEf5'></sub></form><legend id='8zEf5'></legend><bdo id='8zEf5'><pre id='8zEf5'><center id='8zEf5'></center></pre></bdo></b><th id='8zEf5'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='8zEf5'><tfoot id='8zEf5'></tfoot><dl id='8zEf5'><fieldset id='8zEf5'></fieldset></dl></div>
    <tfoot id='8zEf5'></tfoot>

        <legend id='8zEf5'><style id='8zEf5'><dir id='8zEf5'><q id='8zEf5'></q></dir></style></legend>

        主線程上的同步 XMLHttpRequest 已被棄用...嘗試了許

        Synchronous XMLHttpRequest on the main thread is deprecated... Tried many different solution(主線程上的同步 XMLHttpRequest 已被棄用...嘗試了許多不同的解決方案)

          <bdo id='kpjZV'></bdo><ul id='kpjZV'></ul>

              • <small id='kpjZV'></small><noframes id='kpjZV'>

                  <tbody id='kpjZV'></tbody>
              • <tfoot id='kpjZV'></tfoot>
                  <legend id='kpjZV'><style id='kpjZV'><dir id='kpjZV'><q id='kpjZV'></q></dir></style></legend>
                  <i id='kpjZV'><tr id='kpjZV'><dt id='kpjZV'><q id='kpjZV'><span id='kpjZV'><b id='kpjZV'><form id='kpjZV'><ins id='kpjZV'></ins><ul id='kpjZV'></ul><sub id='kpjZV'></sub></form><legend id='kpjZV'></legend><bdo id='kpjZV'><pre id='kpjZV'><center id='kpjZV'></center></pre></bdo></b><th id='kpjZV'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='kpjZV'><tfoot id='kpjZV'></tfoot><dl id='kpjZV'><fieldset id='kpjZV'></fieldset></dl></div>
                1. 本文介紹了主線程上的同步 XMLHttpRequest 已被棄用...嘗試了許多不同的解決方案的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我知道這個問題在這里發布了很多次,但我嘗試了所有我能找到的關于堆棧溢出的解決方案,但都沒有奏效.我只是試圖做一個簡單的ajax 查詢來加載一個div 內的頁面.就這么簡單:

                  I know this question was posted so many times in here, but I tried all the solutions I could find on stack overflow and none of them worked. I'm just trying to make a simple ajax query to load a page inside a div. Just as simple as:

                  function loadHome(){
                  $('#container').html('<div class="loader"></div>');
                  $.ajax({
                      type: "GET",
                      url: "home.php",
                          success: function(msg){
                              $("#container").html(msg);
                          }
                  });
                  }
                  

                  在控制臺日志上我得到了

                  And on the console log I get

                  主線程上的同步 XMLHttpRequest 已被棄用,因為它會對最終用戶的體驗產生不利影響.如需更多幫助,請查看 http://xhr.spec.whatwg.org/

                  Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/

                  除非我重新加載頁面,否則我在主頁上的一些 javascript 將無法工作.默認情況下,該頁面已在 div 中加載 home.php ,但我希望它加載其他頁面,然后當我單擊主頁"時它應該正常加載,并且由于該錯誤而沒有發生.我已經嘗試使用async:true",但沒有用.我不知道該怎么辦.

                  And some of my javascript on the home page will not work unless I reload the page. That page is by default loading home.php inside the div already, but I want it to load other pages and then when I click "home" it should load normally, and that's not happening because of that error. I already tried to use "async: true", didn't work. I don't know what to do.

                  推薦答案

                  你應該使用本地 jquery 然后從 cdn 以及

                  You should use local jquery then from cdn and also

                  為避免此警告,請勿使用:

                  To avoid this warning, do not use:

                  async: false
                  

                  在您的任何 $.ajax() 調用中.這是 XMLHttpRequest 唯一被棄用的功能.

                  in any of your $.ajax() calls. This is the only feature of XMLHttpRequest that's deprecated.

                  默認值為 async: true,因此如果您根本不使用此選項,那么如果該功能被真正刪除,您的代碼應該是安全的(它可能不會——它可能被從標準中刪除,但我敢打賭瀏覽器會繼續支持它很多年).

                  The default is async: true, so if you never use this option at all, your code should be safe if the feature is ever really removed (it probably won't be -- it may be removed from the standards, but I'll bet browsers will continue to support it for many years).

                  參考

                  這篇關于主線程上的同步 XMLHttpRequest 已被棄用...嘗試了許多不同的解決方案的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  Browser waits for ajax call to complete even after abort has been called (jQuery)(即使在調用 abort (jQuery) 之后,瀏覽器也會等待 ajax 調用完成)
                  JavaScript innerHTML is not working for IE?(JavaScript innerHTML 不適用于 IE?)
                  XMLHttpRequest cannot load, No #39;Access-Control-Allow-Origin#39; header is present on the requested resource(XMLHttpRequest 無法加載,請求的資源上不存在“Access-Control-Allow-Origin標頭) - IT屋-程序員軟件開發技術分
                  Is it possible for XHR HEAD requests to not follow redirects (301 302)(XHR HEAD 請求是否有可能不遵循重定向 (301 302))
                  NETWORK_ERROR: XMLHttpRequest Exception 101(NETWORK_ERROR:XMLHttpRequest 異常 101)
                  XMLHttpRequest 206 Partial Content(XMLHttpRequest 206 部分內容)
                    <i id='STwrM'><tr id='STwrM'><dt id='STwrM'><q id='STwrM'><span id='STwrM'><b id='STwrM'><form id='STwrM'><ins id='STwrM'></ins><ul id='STwrM'></ul><sub id='STwrM'></sub></form><legend id='STwrM'></legend><bdo id='STwrM'><pre id='STwrM'><center id='STwrM'></center></pre></bdo></b><th id='STwrM'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='STwrM'><tfoot id='STwrM'></tfoot><dl id='STwrM'><fieldset id='STwrM'></fieldset></dl></div>
                    <tfoot id='STwrM'></tfoot>
                      <bdo id='STwrM'></bdo><ul id='STwrM'></ul>

                      • <small id='STwrM'></small><noframes id='STwrM'>

                          <legend id='STwrM'><style id='STwrM'><dir id='STwrM'><q id='STwrM'></q></dir></style></legend>

                              <tbody id='STwrM'></tbody>
                          • 主站蜘蛛池模板: 国产目拍亚洲精品99久久精品 | 人人看人人爽 | 一级免费视频 | 羞羞午夜| 97影院在线午夜 | 一区二区三区欧美在线 | 国产精品视频免费观看 | 日韩午夜影院 | 男人的天堂视频网站 | 9191成人精品久久 | 久久成 | 亚洲日本一区二区三区四区 | 国产精品成人一区二区三区夜夜夜 | 亚洲国产一区二区三区 | 亚洲色图图片 | 国产精品久久国产精品99 gif | 国产一区二区三区四区在线观看 | 一级一级一级毛片 | 亚洲国产精品视频 | 激情欧美一区二区三区中文字幕 | 久久久精品网 | 亚洲精品视频免费观看 | 欧美日韩精品亚洲 | 午夜亚洲| 性色视频 | 在线观看中文字幕视频 | 天天曰天天干 | 91亚洲国产亚洲国产 | 欧美亚洲国产一区二区三区 | 国产一区二区免费 | 日日干日日射 | 日本激情一区二区 | 久久99精品久久久久久国产越南 | 久久久人成影片免费观看 | 欧美一区精品 | 欧美日韩在线观看一区 | 97日日碰人人模人人澡分享吧 | 免费在线播放黄色 | 97精品超碰一区二区三区 | 成人精品久久 | 国产视频一区二区三区四区五区 |