通过pushState改变页面地址:
pushState({data:'foo'},'foo.html')
replaceState({data:'bar'},'bar.html')
改变页面的hash:
#yes
location.hash = '#no';