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).