5
我读这么多的博客它说,有在清除离子应用程序中的缓存?
$scope.logout = function() {
$ionicHistory.clearCache();
$ionicHistory.clearHistory();
$state.go('home');
};
一个错误是否有使用离子代码清除缓存或使用一些角代码的任何溶液??
我读这么多的博客它说,有在清除离子应用程序中的缓存?
$scope.logout = function() {
$ionicHistory.clearCache();
$ionicHistory.clearHistory();
$state.go('home');
};
一个错误是否有使用离子代码清除缓存或使用一些角代码的任何溶液??
使用这个插件可以清除缓存
按照此步骤
1)安装这个插件 https://www.npmjs.com/package/cordova-plugin-cache
2)要清除缓存写这行
window.cache.clear()
谢谢它适合我。 –