Vue中三种url跳转不刷新页面的方法
1.利用location.hash方法
location.hash ='qqqq'
2.利用history.pushState()的方法
history.pushState = ({},'','home')
3.利用history.replaceState()方法
history.replaceState({},'','home')
4.利用history.go()或者history.forward()
history.go(2)
history.forward()
![在这里插入图片描述](https://i-blog.csdnimg.cn/blog_migrate/2bd842c40f20dc5ae449eb3cabebfcd1.png)