微信小程序 分享给好友
1.html的代码
button class="fixed-text fixed-button" open-type="share" title="分享" hover-class="none"分享好友/button2.js的代码
onShareAppMessage:function(res) { if (res.from == 'button') { console.log(res.target, res) } return { title:'这里是发送时候的标题', path:'/pages/home/index',//这里是被分享的人点击进来之后的页面 imageUrl: '../../images/icon-logo.png'//这里是图片的路径 } },















