微信小程序页面内转发 按钮 转发

通过给 button 组件设置属性 open-type="share",可以在用户点击按钮后触发 Page.onShareAppMessage() 事件,如果当前页面没有定义此事件,则点击后无效果。相关组件:button

微信小程序 单击按钮转发,一定要设置open-type。否则无效

原文地址:https://www.cnblogs.com/gqx-html/p/8317243.html