HarmonyOS鸿蒙Next中Router.replace()方法的作用是什么?和Router.pushUrl()方法有什么区别?

HarmonyOS鸿蒙Next中Router.replace()方法用于替换当前路由,并将目标路由压入栈顶。与Router.pushUrl()方法不同,Router.replace()方法不会保留当前路由,而是直接替换掉当前路由。


更多关于HarmonyOS鸿蒙Next中Router.replace()方法的作用是什么?和Router.pushUrl()方法有什么区别?的实战教程也可以访问 https://www.itying.com/category-93-b0.html

回到顶部