💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
具体的button的api地址为:[链接](https://developers.weixin.qq.com/miniprogram/dev/component/button.html) ~~~ <button type="primary" open-type="getUserInfo" bindgetuserinfo="onGetUserInfo">获取用户信息 </button> ~~~ button中常用的属性: * type: 可以设置button的背景颜色,primary(绿),default(白),warn(红) * open-type: 微信小程序的开放功能,值有很多,其中share会触发用户转发,getUserInfo获取用户信息,在绑定事件bindgetuserinfo回调中获取到用户信息...... * plain 设置button边框为透明色,免去button的border的苦恼 * bindgetuserinfo给button绑定点击事件,点击时会返回获取的用户信息 > **设置button的type可以为button设置背景颜色,open-type为微信开放功能,plain可以将button的边框变为透明,bindgetuserinfo用户点击该按钮时,会返回获取到的用户信息**