import {Storage} from '@ionic/storage';
constructor(storage: Storage){}
this.storage.ready().then(() => {
// set a key/value
this.storage.set('name', 'Max');
// Or to get a key/value pair
this.storage.get('age').then((val) => {
console.log('Your age is', val);
})
});
这给了我一个错误:类型存储上不存在属性'ready',
任何帮助人员