babyfs-wxapp-storage
v1.0.4
Published
BABYFS-MINA-PUREJS
Downloads
15
Readme
babyfs-wxapp-storage
babyfs wxapp storage helper
How to use
import storage from "../babyfs-wxapp-storage/index.js";
storage.getData("token");
storage.setData("token", "*****");
storage.remove("token");
storage.clear();
getData(key)
parameter
| name | type | required | default | description | | ---- | ------ | -------- | ------- | ----------- | | key | String | yes | - | 键名 |
setData(key, value)
parameter
| name | type | required | default | description | | ----- | ------ | -------- | ------- | ----------- | | key | String | yes | - | 键名 | | value | * | yes | - | 键值 |
remove(key)
parameter
| name | type | required | default | description | | ---- | ------ | -------- | ------- | ----------- | | key | String | yes | - | 键名 |