微信登录

API - wx.getStorageSync({}) - 同步获得缓存

作用:获得缓存

  1. wx.getStorageSync({
  2. key: 'key',
  3. success (res) {
  4. console.log(res.data)
  5. }
  6. })