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.
蝴蝶刀刀
紫衣仙女
随时随地看视频慕课网APP
相关分类