导读:uniapp路由与页面之间的跳转
路由与页面之间的跳转
uni.navigateTo({}) //保留当前页面,跳转到应用内的某个页面
uni.navigateBack({})//返回上一页面 delta: 返回的页面数,如果 delta 大于现有页面数,则返回到首页
uni.redirectTo({})//关闭当前页面,跳转到应用内的某个页面
uni.switchTab({})//跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面。
uni.relaunch({})//关闭所有页面,跳转到应用内的某个页面
uni.preloadPage({})//跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面。