获取用户信息的接口又改了吗?还是我哪里写错了
按钮
< button open-type = "getUserInfo" bindgetuserinfo = "bindGetUserInfo" >login</ button > |
事件
bindGetUserInfo: function (e) { wx.getUserInfo({ success:function(e) { console.log(e); }, fail: function (e) { console.log(e); } }) }, |
结果