当前位置:网站首页>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 ;
边栏推荐
- About the problem that the El date picker Click to clear the parameter and make it null
- win10为任意文件添加右键菜单
- The difference between ArrayList and LinkedList
- Rough reading DS transunet: dual swing transformer u-net for medical image segmentation
- Quelques exercices sur les arbres binaires
- Apache POI的读写
- Shortcut key bug, reproducible (it seems that bug is the required function [funny.Gif])
- IO管脚配置和pinctrl驱动
- Persistence mechanism of redis
- MySQL lock details
猜你喜欢

Semi-supervised Learning入门学习——Π-Model、Temporal Ensembling、Mean Teacher简介

Enumeration? Constructor? Interview demo

0号进程,1号进程,2号进程

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

A classic interview question covering 4 hot topics

(original) custom drawable

This, constructor, static, and inter call must be understood!

orthofinder直系同源蛋白分析及结果处理

Apache POI的读写

MySQL lock details
随机推荐
See how much volatile you know
JVM common garbage collector
Analysis of orthofinder lineal homologous proteins and result processing
vim 从嫌弃到依赖(19)——替换
The most direct manifestation of memory leak
Redis installation under Linux
Source insight 工具安装及使用方法
June 26, 2022 (LC 6100 counts the number of ways to place houses)
win10为任意文件添加右键菜单
IO pin configuration and pinctrl drive
招聘需求 视觉工程师
Design of multiple classes
我大抵是卷上瘾了,横竖睡不着!竟让一个Bug,搞我两次!
Oracle uses an SQL to find out which data is not in a table
The markdown plug-in of the browser cannot display the picture
The largest rectangle in the bar graph of force buckle 84
有关二叉树的一些练习题
Internal class ~ lock ~ access modifier
使线程释放锁资源的操作/方法重载一点注意事项
静态代码块Vs构造代码块