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

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

      <tfoot id='dLhgg'></tfoot>
        <bdo id='dLhgg'></bdo><ul id='dLhgg'></ul>
    1. 我如何知道 jQuery 是否有待处理的 Ajax 请求?

      时间:2023-10-15

        1. <small id='15HNM'></small><noframes id='15HNM'>

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

            1. <tfoot id='15HNM'></tfoot>
                <bdo id='15HNM'></bdo><ul id='15HNM'></ul>

              • 本文介绍了我如何知道 jQuery 是否有待处理的 Ajax 请求?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                我在使用我们制作的 jQuery 控件时遇到了一些问题.假设您有一个下拉列表,允许您输入要查找的项目的 ID,当您按 ENTER 或在文本框中失去焦点时,它会通过 jQuery 验证您输入的 ID 是否正确,如果没有则显示警报不.

                I'm having some problems with a jQuery control we made. Suppose you have a dropdownlist that allows you to enter the ID of the item you're looking for, and when you press ENTER or lose focus in a textbox it validates via jQuery that the ID you entered is correct, showing an alert if it doesn't.

                问题是当普通用户在其中输入了一个无效的值并通过按下提交按钮失去焦点时,jQuery post在表单的提交发送后返回.

                The thing is that when an ordinary user enters an invalid value in it and loses focus by pressing the submit button, the jQuery post returns after the submit of the form has been sent.

                有什么方法可以检查 jQuery 是否有任何异步请求处理,以便我不允许表单提交?

                Is there any way that I can check if there's any Async request processing by jQuery so that I do not allow the form submit?

                推荐答案

                你可以使用 ajaxStart和 ajaxStop 来跟踪请求何时处于活动状态.

                You could use ajaxStart and ajaxStop to keep track of when requests are active.

                这篇关于我如何知道 jQuery 是否有待处理的 Ajax 请求?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:来自 XMLHttpRequest 的空 responseText 下一篇:$.ajax 调用在 IE8 中运行良好,但在 Firefox 和 chr

                相关文章

                最新文章

                  <bdo id='KYvkl'></bdo><ul id='KYvkl'></ul>
                  <tfoot id='KYvkl'></tfoot>

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

                  1. <small id='KYvkl'></small><noframes id='KYvkl'>

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