微信小程序分享给好友

1.1.html的代码

buttonclass="fixed-textfixed-button"open-type="share"title="分享"hover-class="none"分享好友/button

2.2.js的代码

onShareAppMessage:function(res){if(res.from=='button'){console.log(res.target,res)}return{title:'这里是发送时候的标题',path:'/pages/home/index',//这里是被分享的人点击进来之后的页面imageUrl:'../../images/icon-logo.png'//这里是图片的路径}},

TAG标签: 微信小程序小程序如何分享给好友小程序分享

http://www.xiaochengxub.com/read-98230.html