wx.openSetting
发布于 5 年前 作者 ping73 14751 次浏览 来自 问答
wx.openSetting({
  success: (res) => {    /*
     * res.authSetting = {
     *   "scope.userInfo": true,
     *   "scope.userLocation": true
     * }
     */
  }
})

我想问一下返回后的数据怎么调出来,用

console.log(

res.authSetting.scope.userInfo//打印不出来  报错

)

2 回复

res.authSetting[“scope.userInfo”]

回到顶部