Vue 路由 跳转【返回、刷新,前端rxjava面试
原页表表单中的内容会保留
this.$router.back():后退 ;
this.$router.back(0) 刷新;
this.$router.back(1):前进
this.$router.push
===============================================================================
跳转到指定url路径,并想history栈中添加一个记录,点击后退会返回到上一个页面
1. 不带参数
- this.$router.push(’/home’)
- this.$router.push({