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

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

        浏览器的 AJAX (XmlHttpRequest) 超时长度

        时间:2023-10-13

        1. <legend id='o0RHP'><style id='o0RHP'><dir id='o0RHP'><q id='o0RHP'></q></dir></style></legend>
          <i id='o0RHP'><tr id='o0RHP'><dt id='o0RHP'><q id='o0RHP'><span id='o0RHP'><b id='o0RHP'><form id='o0RHP'><ins id='o0RHP'></ins><ul id='o0RHP'></ul><sub id='o0RHP'></sub></form><legend id='o0RHP'></legend><bdo id='o0RHP'><pre id='o0RHP'><center id='o0RHP'></center></pre></bdo></b><th id='o0RHP'></th></span></q></dt></tr></i><div id='o0RHP'><tfoot id='o0RHP'></tfoot><dl id='o0RHP'><fieldset id='o0RHP'></fieldset></dl></div>
            <bdo id='o0RHP'></bdo><ul id='o0RHP'></ul>
          • <small id='o0RHP'></small><noframes id='o0RHP'>

              <tbody id='o0RHP'></tbody>
            • <tfoot id='o0RHP'></tfoot>

                • 本文介绍了浏览器的 AJAX (XmlHttpRequest) 超时长度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我一直在网上搜索,试图找到一个直接的答案.有谁知道浏览器 ajax 请求的默认超时长度?如果它改变了,也按版本?

                  I've been scouring the web trying to find a straight answer to this. Does anyone know the default timeout lengths for ajax request by browser? Also by version if it's changed?

                  推荐答案

                  我认为浏览器没有AJAX超时,只有同步或异步请求;同步 - 首先冻结 JavaScript 执行,直到请求返回,异步 - 不冻结 JavaScript 执行,它只是将请求从执行流程中取出,如果您有回调函数,它将与正在运行的脚本并行执行该函数(类似于线程)

                  I don't think browsers have a timeout for AJAX, there is only synchronous or asynchronous requests; synchronous - first freezes the JavaScript execution until the request returns, asynchronous - does not freeze JavaScript execution, it simply takes the request out of the execution flow, and if you have a callback function it will execute the the function in parallel with the running scripts (similar to a thread)

                  **sync flow:**
                  
                  running JS script
                       |
                      ajax
                  (wait for response)
                       |
                  execute callback 
                       |
                  running JS script
                  
                  
                  
                  
                   **async flow:**
                  
                   running JS script
                       |
                      ajax  --------------------
                       |                       |
                   running JS script       execute callback
                  

                  这篇关于浏览器的 AJAX (XmlHttpRequest) 超时长度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:如何在 Javascript 中删除 HTTP 特定的标头 下一篇:从 Google Translate API 获取中文罗马拼音

                  相关文章

                  最新文章

                  <legend id='tQmZt'><style id='tQmZt'><dir id='tQmZt'><q id='tQmZt'></q></dir></style></legend>
                  <i id='tQmZt'><tr id='tQmZt'><dt id='tQmZt'><q id='tQmZt'><span id='tQmZt'><b id='tQmZt'><form id='tQmZt'><ins id='tQmZt'></ins><ul id='tQmZt'></ul><sub id='tQmZt'></sub></form><legend id='tQmZt'></legend><bdo id='tQmZt'><pre id='tQmZt'><center id='tQmZt'></center></pre></bdo></b><th id='tQmZt'></th></span></q></dt></tr></i><div id='tQmZt'><tfoot id='tQmZt'></tfoot><dl id='tQmZt'><fieldset id='tQmZt'></fieldset></dl></div>
                    <bdo id='tQmZt'></bdo><ul id='tQmZt'></ul>

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

                • <tfoot id='tQmZt'></tfoot>