获得过 0 次赞
回答过的问题获得 0 次赞
分享过的文章/案例获得 0 次赞
评论与回复获得 0 次赞
- wx.getUserProfile 获取用户信息
<button bindtap="getUserProfile">登录 / 获取头像昵称</button> wx.getUserProfile({ desc: '用于展示用户信息', success: (res) => { console.log('用户信息:', res.userInfo) this.setData({ userInfo: res.userInfo, hasUserInfo: true }) }, fail: () => { wx.showToast({ title: '用户拒绝授权', icon: 'none' }) } }) 通过该方式获取用户信息怎么获取来的都是默认数据
1天前 - invoke accessSync fail: too eayly. Erro?
[图片]真机调试和体验版报如下错误怎么解决,还发工具中可以正常运行
2024-04-11