Vue 路由 跳转【返回、刷新,前端rxjava面试

作者 : admin 本文共270个字,预计阅读时间需要1分钟 发布时间: 2024-03-28 共1人阅读

原页表表单中的内容会保留

this.$router.back():后退 ;

this.$router.back(0) 刷新;

this.$router.back(1):前进

this.$router.push

===============================================================================

跳转到指定url路径,并想history栈中添加一个记录,点击后退会返回到上一个页面

1. 不带参数

  • this.$router.push(’/home’)
  • this.$router.push({
本站无任何商业行为
个人在线分享 » Vue 路由 跳转【返回、刷新,前端rxjava面试
E-->