history对象

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

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

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

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

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

posted @ 2017-06-22 23:37  guanqinghua  阅读(16)  评论(0编辑  收藏  举报