wx.setStorageSync('openid', res.data.data.openid),设置 var openid = wx.getStorageSync('openid')获取 转载于:https://www.cnblogs.com/isuansuan/p/9949029.html