hash
1)#号后面就是hash的内容
2)可以通过location.hash拿到
3)可以通过onhashchange监听hash改变
history
1)history即正常路径
2)可以通过location.pathname拿到
3)可以通过onpopstate监听history的改变
hash
1)#号后面就是hash的内容
2)可以通过location.hash拿到
3)可以通过onhashchange监听hash改变
history
1)history即正常路径
2)可以通过location.pathname拿到
3)可以通过onpopstate监听history的改变