Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

wx-storage

1sm235MIT1.0.2

Catch the exception of wechat minprogram storage API automatically

wxapp, wechat-miniprogram

readme

介绍

微信小程序storage API封装 , 方法名与原API同名 , 包含异常处理

安装

方式一. 通过 npm 安装 (推荐)

小程序已经支持使用 npm 安装第三方包,详见 npm 支持

# 通过 npm 安装
npm i wx-storage -S --production

# 通过 yarn 安装
yarn add wx-storage --production

方式二. 下载代码

直接通过 git 下载源代码,并将index.js拷贝到自己的项目中

git clone https://github.com/1sm23/wx-storage.git