-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[软技能] 第53天 有用过本地存储吗?有什么限制?有没有考虑过超出了限制怎么办? #210
Comments
有大小限制,超过考虑其他方案; |
LocalStorage 的限制一般为 10MB 超出限制可以使用 File System API,MEGA 网盘就使用了 fileSystem API。 该特性是非标准的,尽量不要在生产环境中使用! |
从上表可以看到,cookie 已经不建议用于存储。如果没有大量数据存储需求的话,可以使用 localStorage 和 sessionStorage 。对于不怎么改变的数据尽量使用 localStorage 存储,否则可以用 sessionStorage 存储。存储大量数据:IndexDB。 |
如果准确来讲,没有不限的, MDN上有关于配额管理的描述,可以参考 |
LocalStorage 的限制一般为 10MB 超出限制可以使用 File System API,MEGA 网盘就使用了 fileSystem API。 该特性是非标准的,尽量不要在生产环境中使用! |
第53天 有用过本地存储吗?有什么限制?有没有考虑过超出了限制怎么办?
The text was updated successfully, but these errors were encountered: