1.1.0 • Published 5 years ago
vlf v1.1.0
vlf
vue-localforage and support typescript
Install
npm install --save localforage vlf
How to use vlf
import Vlf from 'vlf'
import localforage from 'localforage'
Vue.use(Vlf, localforage)
In your code
// 创建实例
this.$vlf.createInstance({
storeName: 'user'
})
// 迭代
this.$vlf.iterate((value, key, num) => {
console.log(key);
});
// 设置值
this.$vlf.setItem('test', 'hello').then(v => {
console.log(v);
});
// ...和官方调用一致
// The other methods of use are the same as the official website, just add a this.$vlf in front, the same behind!
1.1.0
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.8-beta2
5 years ago
1.0.8-beta1
5 years ago
1.0.8-beta
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
8 years ago
1.0.2
8 years ago
1.0.1
8 years ago
1.0.0
8 years ago