时间: 2020-08-23|39次围观|0 条评论

.info{     width:100px;     word-break:break-all;     display:-webkit-box;     -webkit-box-orient:vertical;     -webkit-line-colamp:3;     overflow:hidden;}

button组件设置属性 open-type="share"

onShareAppMessage: function () {} 事件

微信小程序的分享功能-css文字超过两行隐藏插图
image.png
<button open-type="share">分享</button>
微信小程序的分享功能-css文字超过两行隐藏插图1
image.png
//转发  onShareAppMessage: function() {    let users = wx.getStorageSync('user');    if (res.from === 'button') {}    return {      title: '转发',      path: '/pages/index/index',      success: function(res) {}    }  }
微信小程序的分享功能-css文字超过两行隐藏插图2
image.png
微信小程序的分享功能-css文字超过两行隐藏插图3
image.png
微信小程序的分享功能-css文字超过两行隐藏插图4
image.png
微信小程序的分享功能-css文字超过两行隐藏插图5
image.png
微信小程序的分享功能-css文字超过两行隐藏插图6
image.png
微信小程序的分享功能-css文字超过两行隐藏插图7
image.png

请点赞!因为你的鼓励是我写作的最大动力!

微信小程序的分享功能-css文字超过两行隐藏插图8
官方微信公众号

吹逼交流群:711613774

微信小程序的分享功能-css文字超过两行隐藏插图9
吹逼交流群

文章转载于:https://www.jianshu.com/p/d1e34b4ae33d

原著是一个有趣的人,若有侵权,请通知删除

本博客所有文章如无特别注明均为原创。
复制或转载请以超链接形式注明转自起风了,原文地址《微信小程序的分享功能-css文字超过两行隐藏
   

还没有人抢沙发呢~