We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
StorageEvent 是在另一个文档的上下文中更改存储区域时触发的事件。而 onstorage 属性是用于处理存储事件的 EventHandler。语法如下
window.onstorage = functionRef;
让我们以 onstorage 事件处理程序的用法为例,它记录存储键及其值
window.onstorage = function (e) { console.log( "The " + e.key + " key has been changed from " + e.oldValue + " to " + e.newValue + "." ); };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
StorageEvent 是在另一个文档的上下文中更改存储区域时触发的事件。而 onstorage 属性是用于处理存储事件的 EventHandler。语法如下
让我们以 onstorage 事件处理程序的用法为例,它记录存储键及其值
The text was updated successfully, but these errors were encountered: