HashChangeEvent 对象处理 URL 锚点更改时发生的事件。
Event | Occurs When |
---|---|
onhashchange | There has been changes to the anchor part of a URL |
Property | Returns |
---|---|
newURL | The URL of the document, after the hash has been changed |
oldURL | The URL of the document, before the hash was changed |
HashChangeEvent 继承了以下所有属性和方法:
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!