gpt4 book ai didi

javascript - 如何刷新 ionic View

转载 作者:塔克拉玛干 更新时间:2023-11-02 21:15:05 24 4
gpt4 key购买 nike

我想在点击按钮时刷新一个页面(刷新页面中的数据,释放缓存)主页 我的主页中有一个列表。有一个功能可以更改列表中的项目。但是当我更改项目并重定向到主页时,它会显示以前的值,直到刷新页面,我只想在按下按钮时刷新(清除主页上的缓存)。在 Controller $state.go("app.feed"); 我写了这个。我该如何更改它?

最佳答案

如果你只是想重新加载你可以使用的状态:

$state.go($app.feed, {}, {reload: true});

$state.go($state.current, {}, {reload: true});

你可以引用这个页面:Clear History and Reload Page on Login/Logout Using Ionic Framework

引用这个页面:

https://github.com/angular-ui/ui-router/issues/582

关于javascript - 如何刷新 ionic View ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33515410/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com