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

      <small id='WQrYP'></small><noframes id='WQrYP'>

    1. <legend id='WQrYP'><style id='WQrYP'><dir id='WQrYP'><q id='WQrYP'></q></dir></style></legend><tfoot id='WQrYP'></tfoot>

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

      1. 如何檢查 HTTP 請求是否在瀏覽器中打開?

        How to check if HTTP requests are open in browser?(如何檢查 HTTP 請求是否在瀏覽器中打開?)
          <legend id='zjeSW'><style id='zjeSW'><dir id='zjeSW'><q id='zjeSW'></q></dir></style></legend>

            <tbody id='zjeSW'></tbody>

            • <bdo id='zjeSW'></bdo><ul id='zjeSW'></ul>

                <small id='zjeSW'></small><noframes id='zjeSW'>

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

                • 本文介紹了如何檢查 HTTP 請求是否在瀏覽器中打開?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  有沒有一種簡單的方法可以檢測 XMLHttpRequest 在瀏覽器窗口中是否處于活動狀態?或者有多少是活躍的?IE.有沒有辦法檢測我的瀏覽器窗口中是否有任何 AJAX 調用處于活動狀態?

                  Is there an easy way to detect if an XMLHttpRequest is active in the browser window? Or how many are active? ie. Is there a way to detect if there are any AJAX calls active in my browser window?

                  問題擴展: 使用 javascript 有沒有辦法可以查看是否打開了任何 XMLHttpRequests?比如window.XMLisActive()"之類的?

                  Extension of question: Using javascript is there a way I can see if any XMLHttpRequests are open? Such as "window.XMLisActive()" or something like that?

                  解決方案:最終為 XMLHttpRequest 編寫了一個包裝器:gist here

                  Solution: Ended up writing a wrapper for XMLHttpRequest: gist here

                  推薦答案

                  除非您為 XmlHttpRequest 編寫一個包裝器(或對其進行猴子補丁),否則無法檢測來自 JS 的打開連接跟蹤打開的連接.

                  There is not a way to detect an open connection from JS unless you write a wrapper for XmlHttpRequest (or monkey patch it) that keeps track of opened connections.

                  這里是kidcapital的猴子補丁,不確定是否完美,但這是一個好的開始

                  Here's kidcapital's monkey patch, not sure if it's perfect, but it's a good start

                    (function() {
                      var oldOpen = XMLHttpRequest.prototype.open;
                      window.openHTTPs = 0;
                      XMLHttpRequest.prototype.open = function(method, url, async, user, pass) {
                        window.openHTTPs++;
                        this.addEventListener("readystatechange", function() {
                            if(this.readyState == 4) {
                              window.openHTTPs--;
                            }
                          }, false);
                        oldOpen.call(this, method, url, async, user, pass);
                      }
                    })();
                  

                  注意

                  這不處理 fetch 或 websockets,但你可以在這些情況下做類似的事情.

                  This does not handle fetch or websockets but you could do something similar in those cases.

                  這篇關于如何檢查 HTTP 請求是否在瀏覽器中打開?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持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 部分內容)
                    <tfoot id='r1QIl'></tfoot>

                        • <bdo id='r1QIl'></bdo><ul id='r1QIl'></ul>
                        • <small id='r1QIl'></small><noframes id='r1QIl'>

                            <tbody id='r1QIl'></tbody>

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

                            主站蜘蛛池模板: 日韩综合在线视频 | 国产高清一区二区三区 | 欧美日韩国产一区 | 久久久精品久久 | h片在线播放 | 欧美成人精品在线 | 久久精品欧美一区二区三区不卡 | 在线资源视频 | 天天干天天谢 | 婷婷中文在线 | 国产美女一区二区 | 国产精品久久精品 | 欧美成人a∨高清免费观看 色999日韩 | 在线免费毛片 | 亚洲视频在线观看 | 免费精品视频一区 | 精品欧美二区 | 一区二区三区四区av | 亚洲手机视频在线 | 亚洲一区二区电影在线观看 | 中文字幕精品一区久久久久 | 久久久成人精品 | 欧美亚洲国产一区二区三区 | 鲁一鲁资源影视 | 欧美成人二区 | 999www视频免费观看 | 久久综合久久久 | 国产精品高潮呻吟久久 | 男女网站免费 | www午夜视频 | 天天综合永久 | 天天射影院 | 日本一区二区三区免费观看 | 久久精品综合 | 99久久久久国产精品免费 | 国产精品久久久久久久久久久免费看 | 欧洲精品码一区二区三区免费看 | 日本黄色免费大片 | 亚洲精品一区二区三区在线 | 欧美中文字幕一区二区三区亚洲 | 久久精品久久久久久 |