当前位置: 移动技术网 > IT编程>开发语言>JavaScript > 微信小程序动态添加分享数据

微信小程序动态添加分享数据

2017年12月12日  | 移动技术网IT编程  | 我要评论

微信小程序分享效果:

js代码:

page({

 /**
 * 用户点击分享按钮或右上角分享
 */
 onshareappmessage: function (res) {
 var that = this;
 return {
  title: that.data.common.act_name,
  desc: that.data.common.introduction,
  path: '/pages/xiangqing/xiangqing?id='+that.data.id,
  success: function (res) {
  // 转发成功
  },
  fail: function (res) {
  // 转发失败
  }
 }
 }

})

以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持移动技术网。

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网