jQuery-JQuery中的ajax默认超时时间是多少
默认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 :毫秒,
热门标签: