uniapp跳转页面不产生历史记录
时间: 2023-08-16 10:08:59 浏览: 321
uni-app 社交 下拉加载历史消息记录,滚动到下拉之前,不闪
uniapp跳转页面不产生历史记录的方法是使用uni.reLaunch或uni.redirectTo进行页面跳转。其中,uni.reLaunch会关闭当前页面并跳转到目标页面,而uni.redirectTo只会关闭当前页面,不会保留历史记录。这样就可以实现跳转页面而不产生历史记录的效果。<em>1</em><em>2</em><em>3</em>
#### 引用[.reference_title]
- *1* [uniapp 跳转页面 和 记录一些其他的坑](https://blog.csdn.net/paidaboluo/article/details/126766126)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *2* [基于uniapp缓存写的搜索历史记录,清空历史记录,点击历史记录直接搜索](https://blog.csdn.net/weixin_45729937/article/details/123466841)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
- *3* [Uni-App 简单的界面跳转实现过程记录(uni.navigateTo)](https://blog.csdn.net/victor_E_N_01185/article/details/126767338)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}} ] [.reference_item]
[ .reference_list ]
阅读全文