Taro.getUserProfile报错 global[key] is not a function
-
taro版本 ^3.2.2-beta.0
使用方法
<Button onClick={this.onGetInfo.bind(this)}> 获取头像昵称 </Button> onGetInfo () { Taro.getUserProfile({ desc: '用于完善会员资料', // 声明获取用户个人信息后的用途,后续会展示在弹窗中,请谨慎填写 success: function(res) { console.log(res) } }) }
出现的问题是
预期是能正常使用获取用户信息
-
@jd_703c76354613a 如果紧急的话,试试这种方法链接地址,虽然版本不一样。