navigator 标签open-type的属性:
navigate: 保留当前页面,跳转到应用内的某个页面
redirect: 关闭当前页面,跳转到应用内的某个页面
reLaunch: 关闭所有页面,打开到应用内的某个页面
switchTab: 跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面
navigateTo, redirectTo 只能打开非 tabBar 页面
switchTab 只能打开 tabBar页面
reLaunch 可以打开任意页面
navigator 标签open-type的属性:
navigate: 保留当前页面,跳转到应用内的某个页面
redirect: 关闭当前页面,跳转到应用内的某个页面
reLaunch: 关闭所有页面,打开到应用内的某个页面
switchTab: 跳转到 tabBar 页面,并关闭其他所有非 tabBar 页面
navigateTo, redirectTo 只能打开非 tabBar 页面
switchTab 只能打开 tabBar页面
reLaunch 可以打开任意页面