如何获取在Ionic2存储(IndexedDB)中找到的密钥长度
我正在尝试使用Ionic2存储,它在浏览器上使用索引数据库。如何获取storedin DB中的密钥总数如何获取在Ionic2存储(IndexedDB)中找到的密钥长度,ionic2,ionic-native,Ionic2,Ionic Native,我正在尝试使用Ionic2存储,它在浏览器上使用索引数据库。如何获取storedin DB中的密钥总数 this.\u storage.length()给我t{uuuuu zone\u symbol\uu state:null,\uuuu zone\u symbol\uu value:Array[0]}我得到了答案,this.\u storage.length()返回承诺 this._storage.length().then((data) => { console.log(d
this.\u storage.length()给我t{uuuuu zone\u symbol\uu state:null,\uuuu zone\u symbol\uu value:Array[0]}我得到了答案,this.\u storage.length()返回承诺
this._storage.length().then((data) => {
console.log(data);
})