小程序 e.detail是什么意思
onGetUserInfo: function(e) { if (!this.logged && e.detail.userInfo) { this.setData({ logged: true, avatarUrl: e.detail.userInfo.avatarUrl, userInfo: e.detail.userInfo }) }}, |
<button open-type="getUserInfo" bindgetuserinfo="onGetUserInfo" class="userinfo-avatar" style="background-image: url({{avatarUrl}})"></button> |
上面是小程序的演示代码,问题1:上面这个函数onGetUserInfo有请求获取用户信息吗?我没看懂哪里去请求了。问题2:函数中的e.detail.xxx这个e.detail是什么意思啊 没看懂跪求大神指点。。。
