jQuery-JQuery中的ajax默认超时时间是多少
1个回答
推荐于2016-05-26
展开全部
默认jquery是没有设置这个时间的,应该是看每个浏览器对XMLHttpRequest对象是否有超时处理
timeout unsigned long
The number of milliseconds a request can take before automatically being terminated. A value of 0 (which is the default) means there is no timeout.
Note: You may not use a timeout for synchronous requests with an owning window.
如果超时了,会触发jquery的ajax中断abort事件。
当然自己可以手动设置时间ajax里有个timeout :毫秒,
timeout unsigned long
The number of milliseconds a request can take before automatically being terminated. A value of 0 (which is the default) means there is no timeout.
Note: You may not use a timeout for synchronous requests with an owning window.
如果超时了,会触发jquery的ajax中断abort事件。
当然自己可以手动设置时间ajax里有个timeout :毫秒,
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询