wxml:
<button open type='getUserInfo 'bindgetuserinfo='userinfo'>Click Get</button>
js:
getUserInfo: function (e) { var that = this wx.login({ success: function () { wx.getUserInfo({ success: function (res) { Console. log ('user '); console.log(res); Console. log ('information '); // that.setData({ // userInfo: res.userInfo // }); }, fail: function (ee) { console.log(ee) console.log('error'); } }) }, fail: function () { } }) },
Follow the public account "New Start Software Steward"
Get the latest network resources and cracking software!
Play with all kinds of software