历史管理
•onhashchange :改变hash值来管理
window.location.hash='';
window.onhashchange=function(){}
•history :
–服务器下运行
–pushState : 三个参数 :数据 标题(都没实现) 地址(可选)
–popstate事件 : 读取数据 event.state
–注意:网址是虚假的,需在服务器指定对应页面,不然刷新找不到页面