jQuery的ajax默认超时值是多少? [英] What is jQuery's ajax default timeout value?

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

问题描述

有人知道默认的jQuery ajax超时值是什么吗?

Does anyone know what the default jQuery ajax timeout value is?

推荐答案

默认值为0(

The default is 0 (technically it's undefined, but behaves as 0). This means no timeout in jQuery itself...if the browser has some timeout it's entirely possible you'll hit that.

仅当指定timeout选项时 jQuery甚至都不会呼叫setTimeout() .

Only when a timeout option is specified does jQuery even call setTimeout().

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

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