实现页面回退刷新?

  • 旧: window.history.back() + window.location.href=document.referrer;

  • 新: HTML5的新API扩展了window.history,使历史记录点更加开放了。可以存储当前历史记录点、替换当前历史记录点、监听历史记录点onpopstate, replaceState

 

Java Program!
原文地址:https://www.cnblogs.com/programb/p/14068729.html