1.点击按钮复制功能 wxml
<button bindtap="fuji1" style="width:180rpx; height:60rpx; background-color: blue; color: white;">复制</button>
1.点击按钮复制功能 js
fuji1(){
wx.setClipboardData({
data: 'wx431db721e5585bdb',
success (res) {
wx.getClipboardData({
success (res) {
console.log(res.data) // data
}
})
}
})
},