Chrome浏览器上的存储限制 [英] Storage limits on Chrome browser

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

问题描述

什么是软限制(用户需要授予超出的软限制)? 硬限制是多少(允许的最大限制).

What is the soft limit (at which the user needs to give permission to exceed)? What is the hard limit (maximum allowed).

推荐答案

警告-此信息已过时-请参见 Chrome在达到 QUOTA_ERR 之前,软限制为5mb. 此处是对该事实的MDN引用.

Chrome has a 5mb soft limit before it hits a QUOTA_ERR. Here's a MDN reference to that fact.

规范提到了QuotaExceededError,但似乎没有说什么应该扔什么时候.

The spec mentions a QuotaExceededError but doesn't seem to say anything about when it should be thrown.

QuotaExceededError (操作失败)是因为操作不足 剩余存储空间,或者已达到存储配额并且用户 拒绝为数据库提供更多空间.

QuotaExceededError The operation failed because there was not enough remaining storage space, or the storage quota was reached and the user declined to give more space to the database.

我没有听说过硬限制,在我自己的开发中也没有达到一个硬限制.在达到效果之前,性能应该已经大大降低了.

I've not heard of a hard limit and not reached one in my own development. Performance should go pretty far south before you reach it.

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

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