当前位置:网站首页>Several ways for wechat applet to jump to the page are worth collecting
Several ways for wechat applet to jump to the page are worth collecting
2022-06-25 00:24:00 【Mr, Guo】
One :js Realization
1、 Keep the current page , Jump to a page in the app
wx.navigateTo({
url: '/pages/wode/wode?param=2323'
})
2.switchTab ( There is no return key , You can only jump to tabBar page , You can't carry parameters )
wx.switchTab({
url: `/pages/wode/wode`,
})
3、reLaunch ( Jump to any page , No return , Yes home page Button )
wx.reLaunch({
url: '/pages/wode/wode'
})
4.redirectTo ( You can only jump tabBar page , No return , But there is a home button )
wx.redirectTo({
url: `/pages/wode/wode`,
})
5.navigateBack ( Apply to target page , delta The value is 1 , Jump to the previous page ,2 Indicates skip two levels )
wx.navigateBack({
delta:1
})
Two :navigator Component implementation
<navigator url = "/pages/wode/wode"> Jump to a new page </navigator>
<navigator url = "/pages/wode/wode" open-type = "redirect"> Jump to a new page </navigator>
<navigator url = "/pages/wode/wode" open-type = "switchTab"> Jump to a new page </navigator>
边栏推荐
- Hyperledger Fabric 2. X dynamic update smart contract
- 腾讯云国际云服务器网络访问丢包问题解决办法
- Outer screen and widescreen wasted? Harmonyos folding screen design specification teaches you to use it
- Only positive integers can be entered in the text box
- Im instant messaging development application keeping alive process anti kill
- Jar package merging using Apache ant
- 软件测试与游戏测试文章合集录
- In the past 5 years, from "Diandian" to the current test development, my success is worth learning from.
- Design and practice of vivo server monitoring architecture
- Hibernate learning 2 - lazy loading (delayed loading), dynamic SQL parameters, caching
猜你喜欢

Ten commandments of self-learning in machine learning

Why are life science enterprises on the cloud in succession?

在企业级开发过程中我发现有位同事用select * from where 条件 for update

Time unified system

Decoupling pages and components using lifecycle

In the process of enterprise development, I found that a colleague used the select * from where condition for update

Ott marketing is booming. How should businesses invest?

UE4 WebBrowser图表不能显示问题

水库大坝安全监测

【排行榜】Carla leaderboard 排行榜 运行与参与手把手教学
随机推荐
Use and click of multitypeadapter in recycleview
Intensive reading of thinking about markdown
Collective example
Dry and wet contacts
Discrete mathematics and its application detailed explanation of exercises in the final exam of spring and summer semester of 2018-2019 academic year
Ansible及playbook的相关操作
Investment analysis and prospect forecast report of global and Chinese triglycine sulfate industry from 2022 to 2028
Unmanned driving: Some Thoughts on multi-sensor fusion
【面试题】instancof和getClass()的区别
Analysis report on development trend and investment forecast of global and Chinese D-leucine industry from 2022 to 2028
Go crawler framework -colly actual combat (II) -- Douban top250 crawling
Encryption and encoding resolution
[distributed system design profile (2)] kV raft
What exactly is Nacos
Eliminate duplicate dependencies
【面试题】什么是事务,什么是脏读、不可重复读、幻读,以及MySQL的几种事务隔离级别的应对方法
WordPress add photo album function [advanced custom fields Pro custom fields plug-in series tutorial]
Go crawler framework -colly actual combat (4) -- Zhihu answer crawl (2) -- visual word cloud
Alternative to log4j
C# Winform 最大化遮挡任务栏和全屏显示问题