【问题标题】:How to get current request num in jQuery ajax manager plugin?如何在 jQuery ajax 管理器插件中获取当前请求号?
【发布时间】:2010-01-07 13:29:55
【问题描述】:

我正在做一个学校项目,女巫同时发送多个 ajax 请求。

我正在使用 ajax 管理器插件,这里是 link

有没有办法获取当前的请求号?

【问题讨论】:

    标签: jquery ajax queue


    【解决方案1】:

    $.manageajax._activeRequest[name]里好像有一些信息

    //seems to be the internal id of the current request
    var id = $.manageajax._activeRequest[name].queue[0];
    //should give you the xhr for the current request
    var crXHR = $.manageajax._activeRequest[name].id.xhr;
    

    name 应该对应于$.manageAjax.create('someAjaxProfileName'... 中给出的那个

    此信息可能略有不正确(仅推导形式查看源使用 FireBug 或类似方法进行验证)

    【讨论】:

      猜你喜欢
      • 2013-08-26
      • 2011-07-13
      • 1970-01-01
      • 2011-07-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-29
      相关资源
      最近更新 更多