MDN中關(guān)于觸發(fā)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.
MDN中關(guān)于觸發(fā)popstate,要求之一是same document
蝴蝶刀刀
2018-11-14 18:17:20