JavaScript 内存限制 [英] JavaScript memory limit

查看:34
本文介绍了JavaScript 内存限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

JavaScript 应用程序可以存储的数据量是否有上限?

Is there a maximum amount of data a JavaScript application can store?

我猜这是由浏览器处理的,每个都有其局限性?

I guess this is handled by the browser and each one has its limitation?

如果没有限制,会创建一个页面文件吗?如果是这样,那岂不是不安全?

If there isn't a limit, will a page file be created? If so, wouldn't that be insecure?

推荐答案

AFAIK,没有上限,你的脚本基本可以使用内存,直到系统耗尽内存(包括swap).没有上限不代表一定要吃完,用户可能不喜欢.

AFAIK, there is no upper limit, your script can basically use memory until the system runs out of memory (including swap). No upper limit doesn't mean you have to eat it all, users may not like it.

这篇关于JavaScript 内存限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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