JQuery ajax call default timeout value

后端 未结 4 1321
猫巷女王i
猫巷女王i 2020-12-01 06:08

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

So I\'m trying to find out the default value for timeout of a jQuery

4条回答
  •  时光取名叫无心
    2020-12-01 06:32

    The XMLHttpRequest.timeout property represents a number of milliseconds a request can take before automatically being terminated. The default value is 0, which means there is no timeout. An important note the timeout shouldn't be used for synchronous XMLHttpRequests requests, used in a document environment or it will throw an InvalidAccessError exception. You may not use a timeout for synchronous requests with an owning window.

    IE10 and 11 do not support synchronous requests, with support being phased out in other browsers too. This is due to detrimental effects resulting from making them.

    More info can be found here.

提交回复
热议问题