ionic开发常见问题及解决方案(四)
2017-03-24 14:38
253 查看
http://blog.csdn.net/CapMiachael/article/details/54344100
1. 退出后重新登录,默认方法不执行,没有重新获取数据。
原因:$ionicHistory中的数据未清理,留有缓存
解决方法: 退出或是重新登录时进行历史缓存清理
1
2. 清理 view cache (from statckOverflow : Is it possible to clear the view cache in Ionic?http://stackoverflow.com/questions/28676631/is-it-possible-to-clear-the-view-cache-in-ionic )
2
3
4
5
6
7
1
2
3
4
5
6
7
1. 退出后重新登录,默认方法不执行,没有重新获取数据。
原因:$ionicHistory中的数据未清理,留有缓存
解决方法: 退出或是重新登录时进行历史缓存清理
$ionicHistory.clearCache()1
1
2. 清理 view cache (from statckOverflow : Is it possible to clear the view cache in Ionic?http://stackoverflow.com/questions/28676631/is-it-possible-to-clear-the-view-cache-in-ionic )
i. If you're already on the page, you can do, $state.go($state.currentState, {}, {reload:true}) ii. If you're on another state and want to go back to the state that is normally cached but you want it $ionicHistory.clearCache().then(function(){ $state.go('app.fooState') })1
2
3
4
5
6
7
1
2
3
4
5
6
7
相关文章推荐
- Ionic开发中常见问题和解决方案记录
- ionic开发常见问题及解决方案(四)
- ionic开发常见问题及解决方案(三)
- ionic开发常见问题及解决方案(三)
- ionic开发常见问题及解决方案(二)
- ARKit从入门到精通(11)-ARKit开发常见问题及解决方案
- Mac系统开发常见问题-80端口被占用的解决方案1-使用pfctl做网络层转发
- ARKit从入门到精通(11)-ARKit开发常见问题及解决方案
- Android Launcher开发(五)添加应用程序桌面快捷方常见问题及解决方案
- 《Spring Boot开发:从0到1》第13章 常见问题与解决方案
- net-snmp开发代理常见问题解决方案
- android开发中最常见的问题和解决方案
- ARKit从入门到精通(11)-ARKit开发常见问题及解决方案
- PHP开源开发框架ZendFramework使用中常见问题说明及解决方案
- ubuntu下Android开发环境的搭建:eclipse+SDK详细安装教程+常见问题及其解决方案
- ionic-开发跨平台app的基本问题及解决方案
- ASP.NET高级程序员进阶之路——.net项目开发中一些常见的代码规范问题及解决方案
- 第13章 SpringBoot开发中的常见问题与解决方案
- Xcode开发的常见问题与解决方案
- 在websphere6.1上开发jsf常见问题解决方案