wx.setStorage({
string key,
any data,
function success,
function fail,
function complete
})
例如:
wx.setStorage({ key:"key", data:"value" })
wx.setStorageSync(string key, any data)//同步
wx.setStorageSync("key","value")