hash模式:window.location.hash+window.hashchange;兼容性好但是不美观
history模式:history.pushState+window.popstate;虽然美观,但是刷新会404 需要后端进行配置