Welcome
We've been working hard

How does WeChat applet obtain user information

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 () { } }) },
Like( zero ) Reward
Do not reprint without permission: New Start Blog » How does WeChat applet obtain user information


Follow the public account "New Start Software Steward"

Get the latest network resources and cracking software!
Play with all kinds of software

comment Grab the sofa

You must log in before commenting!

 

Reward the author of the article if you think it is useful

Thank you very much for your reward, we will continue to give more high-quality content, let's create a better online world together!

Scan Alipay and reward

Scan WeChat and reward