微信小程序的分享功能-css文字超过两行隐藏

版权声明:本文为博主原创文章,未经博主允许不得转载,达叔小生:往后余生,唯独有你 https://blog.csdn.net/qq_36232611/article/details/90725354
.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 () {} 事件

image.png

<button open-type="share">分享</button>

image.png

//转发
  onShareAppMessage: function() {
    let users = wx.getStorageSync('user');
    if (res.from === 'button') {}
    return {
      title: '转发',
      path: '/pages/index/index',
      success: function(res) {}
    }
  }

image.png

image.png

image.png

image.png

image.png

image.png


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

官方微信公众号

吹逼交流群:711613774

吹逼交流群

猜你喜欢

转载自blog.csdn.net/qq_36232611/article/details/90725354