无法获取值
• 发表于:2018年11月10日 23:13 • 更新于:2018年11月10日 23:13
wx.BaaS.login(res => {
console.log(res)
console.log('res.id: ' + res.id)// 登录成功
this.globalData.UserId = res.id.toString()
}, err => { // 登录失败
})
console.log('UserId: '+this.globalData.UserId)
this.globalData.UserId的值为空
小林 • 2月前
请问解决了吗?
0 个讨论