MDN中关于触发popstate的条件,要求之一是 same document,让我困惑什么是 same ducument?
原文链接链接描述
Note: calling history.pushState() or history.replaceState() won't trigger a popstate event. The popstate event is only triggered by performing a browser action, such as clicking on the back button (or calling history.back() in JavaScript), **when navigating between two history entries for the same document.
紫衣仙女
相关分类