参考文档:https://developers.weixin.qq.com/miniprogram/dev/api/wx.getClipboardData.html

view{{val}}/viewdata{    val:'来呀、快活呀!'}copy:function(){    var that=this;    wx.setClipboardData({      data: that.data.val,      success() {        wx.showToast({          title: '复制成功',          icon: 'success',          duration: 1000        })      }    })  }

 

TAG标签: 微信小程序复制微信

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