Html5 历史 api,任何方法检查 1 转发历史

Html5 history api, any method to check the 1 forward history

本文关键字:历史 检查 转发 方法 任何 api Html5      更新时间:2023-09-26

我读到前进 +1 在历史记录中,我们有 api 方法:window.history.go(1);

有没有办法只是检查历史记录而不用它重新加载页面?

您可以使用

document.referrer API获取最后一个。