Prototype 中 Ajax 请求的默认全局超时是多少?

发布于 2024-08-20 06:09:31 字数 126 浏览 4 评论 0原文

我找不到如何将超时 选项 附加到 Ajax 原型调用或什么它的默认值。

I cannot find how can I attach an timeout option to the Ajax prototype call or what is the default value for it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

多像笑话 2024-08-27 06:09:31

Prototype 中似乎还没有特定的超时功能。它似乎肯定正在开发中,请参阅 Prototype Ticket #220。我猜它正在使用 XMLHTTPRequests 的任何浏览器范围的全局超时。

JQuery 似乎内置了这个。

There doesn't seem to be specific timeout functionality in Prototype yet. It seems to be definitely in the works, see Prototype Ticket #220. I'm guessing it is using whatever browser-wide global timeout there is for XMLHTTPRequests.

JQuery seems to have this built in.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文