history对象 history对象 包含用户(在浏览器窗口中)访问过的url 方法 back() 可以后退功能 history.back() foward() 前进功能 history.foward() go(参数) 参数是 1 就前进一个页面 -1 就后退一个页面 history.go(1) history.go(-1)