当前位置:网站首页>uniapp中redirectTo和navigateTo的区别
uniapp中redirectTo和navigateTo的区别
2022-07-06 16:43:00 【ChangYan.】
对比一下发现两者使用的格式都一样,里边都是跟url进行页面的跳转
不同的是
navigateTo: (navigate导航)从父页面导航到下一个子页面,然后还可以再回退到父目录,一般默认是最多深入5个页面可以被记录进行回退。
redirectTo:(redirect重定向)在当前页面直接重定向到另一个页面,所以也不存在回退到原页面的情况。
在uniapp中最直观的展示如下图所示,如果采用navigateTo,会自带一个返回上一页面的小图标。
边栏推荐
- Huawei mate8 battery price_ Huawei mate8 charges very slowly after replacing the battery
- rancher集成ldap,实现统一账号登录
- 2022 latest blind box mall complete open source operation source code / docking visa free payment interface / building tutorial
- Leecode brush questions record interview questions 32 - I. print binary tree from top to bottom
- SuperSocket 1.6 创建一个简易的报文长度在头部的Socket服务器
- 2022/2/10 summary
- MySQL master-slave multi-source replication (3 master and 1 slave) setup and synchronization test
- GPIO简介
- What is a responsive object? How to create a responsive object?
- A way of writing SQL, update when matching, or insert
猜你喜欢
What is AVL tree?
Close unregistering application XXX with Eureka with status down after Eureka client starts
Matplotlib draws a histogram and adds values to the graph
App general function test cases
Everyone is always talking about EQ, so what is EQ?
System activity monitor ISTAT menus 6.61 (1185) Chinese repair
[automated testing framework] what you need to know about unittest
Pytest multi process / multi thread execution test case
STM32 enters and wakes up the stop mode through the serial port
量子时代计算机怎么保证数据安全?美国公布四项备选加密算法
随机推荐
app通用功能測試用例
Oracle EMCC 13.5 environment in docker every minute
Cas d'essai fonctionnel universel de l'application
Devops can help reduce technology debt in ten ways
App general function test cases
量子时代计算机怎么保证数据安全?美国公布四项备选加密算法
okcc呼叫中心的订单管理时怎么样的
Leecode brush question record sword finger offer 58 - ii Rotate string left
Automatic test tool katalon (WEB) test operation instructions
What is AVL tree?
Penetration test --- database security: detailed explanation of SQL injection into database principle
How can computers ensure data security in the quantum era? The United States announced four alternative encryption algorithms
GPIO簡介
[2022 the finest in the whole network] how to test the interface test generally? Process and steps of interface test
DAY TWO
刘永鑫报告|微生物组数据分析与科学传播(晚7点半)
在docker中快速使用各个版本的PostgreSQL数据库
DAY FOUR
[vector retrieval research series] product introduction
Use source code compilation to install postgresql13.3 database