Copy.js 244 Bytes RawBlameHistoryPermalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Component({ properties: { content: { type: String, value: "", }, }, methods: { copy() { wx.p.wxApi.setCopyData(this.data.content, () => { wx.p.wxApi.showToast('复制成功') }) }, }, });