This API is used via wx.setClipboardData(Object object).
Attribute | Type | Default value | Required | Description |
data | string | - | Yes | Clipboard content |
success | function | - | No | Callback Function of Successful Interface Call |
fail | function | - | No | Callback Function of Failing Interface Call |
complete | function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
wx.setClipboardData({data: 'data',success(res) {wx.getClipboardData({success(res) {console.log(res.data) // data}})}})
This API is used via wx.getClipboardData(Object object).
1
time per second.Attribute | Type | Default value | Required | Description |
success | function | - | No | Callback Function of Successful Interface Call |
fail | function | - | No | Callback Function of Failing Interface Call |
complete | function | - | No | Callback function executed upon the completion of the interface invocation (both successful and unsuccessful invocations) |
Attribute | Type | Description |
data | string | Clipboard content |
wx.getClipboardData({success(res) {console.log(res.data)}})
Was this page helpful?