history对象

window.history.length //浏览过的页面数

history.back() //在浏览历史里后退一步

history.forward() //在浏览历史里前进一步

  history.go(i) //到汗青详细登记单的第i位

  //i>0进步,i<0撤退退却

原文地址:https://www.cnblogs.com/guanhuohuo/p/12526234.html