当前位置:网站首页>uniapp中redirectTo和navigateTo的区别
uniapp中redirectTo和navigateTo的区别
2022-07-06 16:43:00 【ChangYan.】
对比一下发现两者使用的格式都一样,里边都是跟url进行页面的跳转

不同的是
navigateTo: (navigate导航)从父页面导航到下一个子页面,然后还可以再回退到父目录,一般默认是最多深入5个页面可以被记录进行回退。
redirectTo:(redirect重定向)在当前页面直接重定向到另一个页面,所以也不存在回退到原页面的情况。
在uniapp中最直观的展示如下图所示,如果采用navigateTo,会自带一个返回上一页面的小图标。
边栏推荐
- Competition between public and private chains in data privacy and throughput
- Business process testing based on functional testing
- PXE server configuration
- Racher integrates LDAP to realize unified account login
- Leecode brush questions record interview questions 32 - I. print binary tree from top to bottom
- The largest single investment in the history of Dachen was IPO today
- Huawei mate8 battery price_ Huawei mate8 charges very slowly after replacing the battery
- Yaduo Sangu IPO
- Why should a complete knapsack be traversed in sequence? Briefly explain
- What can the interactive slide screen demonstration bring to the enterprise exhibition hall
猜你喜欢

File and image comparison tool kaleidoscope latest download

DAY ONE

2022 latest blind box mall complete open source operation source code / docking visa free payment interface / building tutorial

Close unregistering application XXX with Eureka with status down after Eureka client starts

System activity monitor ISTAT menus 6.61 (1185) Chinese repair

Pytest multi process / multi thread execution test case

How can computers ensure data security in the quantum era? The United States announced four alternative encryption algorithms

DAY FIVE

Three application characteristics of immersive projection in offline display

DAY THREE
随机推荐
谷歌百度雅虎都是中国公司开发的通用搜索引擎_百度搜索引擎url
Pdf document signature Guide
DevOps可以帮助减少技术债务的十种方式
MySQL主从之多源复制(3主1从)搭建及同步测试
GPIO簡介
17、 MySQL - high availability + read / write separation + gtid + semi synchronous master-slave replication cluster
Hydrogen future industry accelerates | the registration channel of 2022 hydrogen energy specialty special new entrepreneurship competition is opened!
工程师如何对待开源 --- 一个老工程师的肺腑之言
在docker中快速使用各个版本的PostgreSQL数据库
48页数字政府智慧政务一网通办解决方案
Common modification commands of Oracle for tables
Rider离线使用Nuget包的方法
DAY FOUR
PostgreSQL highly available repmgr (1 master 2 slave +1witness) + pgpool II realizes master-slave switching + read-write separation
How to answer the dualistic opposition of Zhihu
GPIO简介
Close unregistering application XXX with Eureka with status down after Eureka client starts
Every year, 200 billion yuan is invested in the chip field, and "China chip" venture capital is booming
DAY FIVE
Business process testing based on functional testing