当前位置:网站首页>Five page Jump methods for wechat applet learning
Five page Jump methods for wechat applet learning
2022-06-27 09:08:00 【. Bemoan】
The first one is :<navigator></navigator> label .
This is the most common way to jump , amount to html Inside a label . But it should be noted that This method cannot jump tabbar page .
The format is :
<navigator url="........"></navigator>The second kind :wx.navigateTo.
By construction js function , Calling this interface in the function can realize the effect of page Jump . However, the interface cannot jump tabbar page . There is a small return arrow in the upper left corner after the jump , Click to return to the original page .
The format is :
<view class="select_calculator" bindtap="next_calculator">next_calculator:function () {
wx.navigateTo({
url: '/pages/calculator/calculator',
})
},
The third kind of :wx.redirectTo.
Close current page , Jump to a page in the app ( Can't jump tabbar page ). Be similar to html Medium window.open('.....');
After the jump, a small return arrow appears in the upper left corner , Click to return to the original page .
A fourth :wx.switchTab.
Jump to tabBar page , And shut down all the others tabBar page ; This method can only jump tabbar page .
for example :


js:
post_calculator:function () {
wx.switchTab({
url: '/pages/calculator/calculator',
})
},
})The fifth :wx.reLaunch.
Close all pages , Open to a page in the app .
Follow wx.redirectTo The return arrow will not appear in the upper left corner , But they are not exactly the same ;
边栏推荐
- Redis configuration file details
- 枚举?构造器?面试Demo
- 【生动理解】深度学习中常用的各项评价指标含义TP、FP、TN、FN、IoU、Accuracy
- Rough reading DS transunet: dual swing transformer u-net for medical image segmentation
- C# 解决使用SQLite 的相对路径问题
- C # solve the relative path problem using SQLite
- IMX8QXP DMA资源和使用(未完结)
- 静态代码块Vs构造代码块
- Markem Imaje Marken IMAS printer maintenance 9450e printer maintenance
- webrtc入门:12.Kurento下的RtpEndpoint和WebrtcEndpoint
猜你喜欢

Understand neural network structure and optimization methods

数字IC-1.9 吃透通信协议中状态机的代码编写套路

快速入门CherryPy(1)

VIM from dislike to dependence (19) -- substitution

力扣84柱状图中最大的矩形

webrtc入门:12.Kurento下的RtpEndpoint和WebrtcEndpoint

Correctly understand MySQL mvcc

IO管脚配置和pinctrl驱动

MySQL lock details

The markdown plug-in of the browser cannot display the picture
随机推荐
Redis transactions
The most direct manifestation of memory leak
1098 insertion or heap sort (PAT class a)
手把手带你玩摄像头模组
ThreadLocal digs its knowledge points again
Process 0, process 1, process 2
Redis installation under Linux
Internal class ~ lock ~ access modifier
Analysis of orthofinder lineal homologous proteins and result processing
支付宝微信支付业务流程图
多个类的设计
The largest rectangle in the bar graph of force buckle 84
JS EventListener
静态代码块Vs构造代码块
Five basic types of redis
Fake constructor???
有關二叉樹的一些練習題
Static code block vs construction code block
Rockermq message sending mode
Order by injection of SQL injection