weapp-storage
微信小程序 storage 组件
Last updated a year ago by imweb .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install weapp-storage 
SYNC missed versions from official npm registry.

weapp-storage

微信小程序 storage 组件

使用

npm install -S weapp-storage
import { storage } from 'weapp-storage';

Page({
  async onLoad() {
    storage.set('test', 1);

    const hasKey = storage.has('test');
    const v = storage.get('test');

    console.log(v, hasKey);

    storage.remove('test');
    // storage.clear();
  },
});

Current Tags

  • 1.0.1                                ...           latest (a year ago)

2 Versions

  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (26)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |