获取微信用户信息 首先,在wxml中写上 <button open-type="getUserInfo" bindgetuserinfo="getMyInfo"> </button> 然后,在js上写上 getMyInfo:function(e){ console.log(e.detail.userInfo); } 使用console.log()将信息打印出来,然后需要什么就去console里看,将它取出来。 多重循环 在wxml中,如果想要设置多重循环,需要在循环的地方加上wx:for-it