怎么覆盖掉前面的多个路由记录?

小程序 文章 2021-03-09 14:01 401 0 全屏看文

AI助手支持GPT4.0

怎么覆盖掉前面的多个路由记录?How to overwrite multiple previous routing records?

怎么覆盖掉前面的多个路由记录?

页面路由是: A => B => C => D

我希望在D页点返回的时候能直接到A页, 把B, C都覆盖掉

Page routing is: a = > b = > C = > D. I hope that when page D returns, I can go directly to page A and cover both B and C

回答:

AKA. 皮卡超:

1.wx.reLaunch(A),navigateTo(D)

2.navigateBack(detla:2) ,navigateTo(D)

3.D页面放按钮navigateBack(detla:3)

4.自定义顶部navigationBar。


黑夜白昼:

C跳D用wx.redirectTo,D页面(我猜是个结果页)中下部放 button 跳到A

Brother斌🎈:

B跳C和C跳D都用wx.redirectTo跳转

刘雷:这个不行, 在B和C操作的时候需要B,C之间能来回跳转.
这么说吧, A是展示页, B和C是两阶段的表单页, D是管理页. 在最后进入D之前, A B C都应该能来回跳转的

-EOF-

AI助手支持GPT4.0