【问题标题】:How to increase ajax request timeout length in a fluxible fetchr application?如何在 Fluxible fetchr 应用程序中增加 ajax 请求超时长度?
【发布时间】:2016-02-20 08:53:11
【问题描述】:

我正在使用 yahoo 的 Fluxible 和 fetchr,但在请求服务调用中偶尔会出现超时。如何在我的配置中增加 ajax 请求超时时间?

https://github.com/yahoo/fluxible-plugin-fetchr

【问题讨论】:

    标签: javascript fluxible fetchr


    【解决方案1】:

    基于查看 lib 代码:

    app.plug(fetchrPlugin({
        xhrPath: '/api',
        xhrTimeout: 2000
    }));
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-04-05
      • 2015-09-29
      • 2013-11-03
      • 2016-04-26
      • 1970-01-01
      • 2021-05-20
      • 2015-01-29
      • 2015-12-21
      相关资源
      最近更新 更多