localStorage


稳定性: 1.0 - 早期开发。

¥Stability: 1.0 - Early development.

localStorage 的浏览器兼容实现。数据以未加密的形式存储在 --localstorage-file CLI 标志指定的文件中。可存储的最大数据量为 10 MB。不支持在 Web Storage API 之外修改此数据。使用 --experimental-webstorage CLI 标志启用此 API。在服务器上下文中使用时,localStorage 数据不是按用户或按请求存储的,而是在所有用户和请求之间共享。

¥A browser-compatible implementation of localStorage. Data is stored unencrypted in the file specified by the --localstorage-file CLI flag. The maximum amount of data that can be stored is 10 MB. Any modification of this data outside of the Web Storage API is not supported. Enable this API with the --experimental-webstorage CLI flag. localStorage data is not stored per user or per request when used in the context of a server, it is shared across all users and requests.