AJAX的最大规模​​返回的数据 [英] Maximum size of ajax returned data

查看:112
本文介绍了AJAX的最大规模​​返回的数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

研究员codeRS,我以前问过这个问题,但没有得到一个结论性的答案。现在的问题是:有多少数据可以我安全地和AJAX调用后返回我遇到一些限制,在什么地方?

Fellow coders, I have asked this question before but did not get a conclusive answer to it. The question is: how much data can i safely return from and ajax post call before i run into some limitation somewhere?

的方案基本上是这样的:前端使一个AJAX调用一个PHP控制器/型号。控制器返回从数据库一堆或行或返回一些HTML重新presenting一些报告,该报告将被存储在一个js串变种后面将要显示的

The scenarios are basically like this: front-end makes an ajax call to a php controller/model. the controller returns a bunch or rows from the database or returns some html representing some report which will be stored in a js string var to be displayed later.

我在这里看到两个限制:数据的大小,通过Ajax调用和最大规模的JS变种可容纳返回。

I see two limitations here: the size of the data returned through the ajax call and max size the js var can hold.

任何人都知道什么样的限制是什么?

Anyone knows what the limits are?

感谢

推荐答案

看到这个答案:的Javascript对于类型最大尺寸?

在短,除非浏览器指定,否则,可变尺寸不受到限制。至于阿贾克斯:没有限制,除非定义服务器端(如<一个href="http://stackoverflow.com/questions/5902540/increasing-maximum-response-size-from-asp-net-page-method">this 之一)。

In short, unless the browser specified otherwise, variable sizes are not subject to a restriction. As for Ajax: There's no limit, unless defined server-side (such as this one).

这篇关于AJAX的最大规模​​返回的数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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