uniapp页面刷新
时间: 2023-08-22 17:11:04 浏览: 208
在uniapp中,有几种方法可以实现页面的刷新。其中一种方法是利用路由,通过强制刷新当前页面来实现。可以使用以下代码:
setTimeout(() => { this.$router.go(0) }, 500)
这段代码将延迟500毫秒后,通过路由的方式刷新当前页面。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [【uniapp】uniapp中刷新本页面](https://blog.csdn.net/m0_63779088/article/details/128025816)[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 style="max-width: 50%"]
- *2* *3* [Uniapp (app端) 缓存、加载、刷新机制](https://blog.csdn.net/weixin_45788691/article/details/107540879)[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 style="max-width: 50%"]
[ .reference_list ]
阅读全文