![](/img/trans.png)
[英]Ionic2 cordova-sqlite-storage: how to use SQLite as a service
[英]Remove all cordova-sqlite-storage values when logging out the ionic3 app?
我目前正在使用ionic 3应用程序,并使用了https://ionicframework.com/docs/building/storage插件。 现在,我正在注销。 在注销该应用程序时,我找不到如何删除数据库中存储的所有数据。
导入和注入存储后,我需要使用clear方法使用以下方法。
logOut() {
this.storage.clear().then((data) => {
console.log('In promise of clear the data ', data);
this.navCtrl.push(SignInPage);
});
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.