此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。
storage
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2017年4月.
当存储区域(localStorage 或 sessionStorage)被修改时,将触发 storage 事件。查看Web Storage API 来获取更多信息。
In this article
常规信息
说明:Web Storage
| 接口 | StorageEvent |
|---|---|
| 是否冒泡 | No |
| 目标 | DefaultView (<window>) |
| 默认行为 | 无 |
属性
规范
| Specification |
|---|
| HTML> # event-storage> |
| HTML> # handler-window-onstorage> |