JQuery的Ajax调用默认的超时值 [英] JQuery ajax call default timeout value

查看:148
本文介绍了JQuery的Ajax调用默认的超时值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个bug报告,我不能复制,但AJAX调用超时是目前最好的猜测。

I got a bug report that I can't duplicate, but ajax-call timeout is the current best guess.

所以我试图找出一个jQuery $。阿贾克斯()调用的超时默认值。任何人有一个想法?无法发现它在jQuery的文档。

So I'm trying to find out the default value for timeout of a jQuery $.ajax() call. Anybody have an idea? Couldn't find it in jQuery documentation.

在此先感谢, 马库斯

推荐答案

似乎没有成为一个标准的默认值。我有一种感觉默认为 0 ,以及超时事件留下完全依赖于浏览器和网络设置。

There doesn't seem to be a standardized default value. I have the feeling the default is 0, and the timeout event left totally dependent on browser and network settings.

有关IE浏览器,有一个XMLHTT prequests 这里超时属性。它默认为空,和它说网络堆栈很可能成为第一个超时(这将的没有的生成ontimeout事件的方式)。

For IE, there is a timeout property for XMLHTTPRequests here. It defaults to null, and it says the network stack is likely to be the first to time out (which will not generate an ontimeout event by the way).

这篇关于JQuery的Ajax调用默认的超时值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆