当前位置:网站首页>Six ways of uniapp route jump
Six ways of uniapp route jump
2022-07-23 15:21:00 【Like angels】
uniapp Official documents Detailed explanation :

One 、uni.navigateTo Keep the current page , Jump to a page in the app , Use uni.navigateBack You can go back to the original page .
uni.navigateTo({
url:'./index/index'
});
Be careful :
- The page Jump path has hierarchical restrictions , You can't jump to new pages without restrictions
- Jump to tabBar The page can only use switchTab Jump
Two 、uni.redirectTo Close current page , Jump to a page in the app .
uni.redirectTo({
url: './index/index'
});
3、 ... and 、uni.reLaunch Close all pages , Open to a page in the app .
uni.reLaunch({
url: './index/index'
});
Four 、uni.switchTab Jump to tabBar page , And shut down all the others tabBar page .
uni.switchTab({
url: '/pages/index/index'
});
Be careful :
- Need to jump tabBar The path of the page ( stay pages.json Configured in the file tabBar page ), The path cannot be followed by parameters , It can be used uni.reLaunch Instead of
5、 ... and 、uni.navigateBack Close current page , Go back to the previous page or multi-level page . It can be done by getCurrentPages() Get the current page stack , Decide how many layers you need to go back .
uni.navigateBack({
delta: 2 // Return to the two-tier page
});
边栏推荐
- 581. Shortest unordered continuous subarray
- Simulation de modulation et de démodulation du signal CBOC basée sur MATLAB, sortie de corrélation, spectre de puissance et suivi de décalage de fréquence
- 基于matlab的BOC调制解调的同步性能仿真,输出跟踪曲线以及不同超前滞后码距下的鉴别曲线
- 智头条:智装论坛将于8月4日举行,2022全屋智能销售将破100亿
- Redis布隆过滤器
- VMware虚拟机下载安装使用教程
- Uniapp realizes horizontal click and slide menu
- Matlab simulation of depth information extraction and target ranging based on binocular camera images
- 工业物联网中的时序数据
- 基於matlab的CBOC信號調制解調仿真,輸出其相關性,功率譜以及頻偏跟踪
猜你喜欢
![[200 opencv routines] 225. Fourier descriptor for feature extraction](/img/4b/1f373505ffd5c0dbaa5c20431c4b42.png)
[200 opencv routines] 225. Fourier descriptor for feature extraction

数据治理浅析

Simulink simulation of ESP three-phase SVPWM controller

基於matlab的CBOC信號調制解調仿真,輸出其相關性,功率譜以及頻偏跟踪

Safe operation 7.22

338. Bit count

Simulation of voltage source PWM rectifier with double closed loop vector control based on Simulink

Matlab simulation of depth information extraction and target ranging based on binocular camera images

MariaDB 数据库升级版本

Use of RSA encryption
随机推荐
STL deque
MySQL执行顺序
pytorch opencv pil图像预处理比较
Blazor快速实现扫雷(MineSweeper)
STL map operation
安全7.18作业
第一篇 项目基本情况介绍
Leetcode: 17. letter combination of phone number
xlswriter - excel导出
Kettle implements shared database connection and insert update component instances
[turn] functional area division based on poi ()
【启发式分治】启发式合并的逆思想
Getting started with Prometheus (III)
Shell脚本案例---3
338. Bit count
day18
Force buckle monotone stack
js判断元素是否到滚动到顶部
BGP basic configuration
【OpenCV 例程200篇】225. 特征提取之傅里叶描述子