# wx.getClipboardData(Object object)
Start from base library version 1.1.0. Please remaining backward compatible.
Gets the content on the system clipboard.
# Parameters
# Object object
Attribute | Type | Default | Required | Description |
---|---|---|---|---|
success | function | No | The callback function for a successful API call | |
fail | function | No | Callback function for failed API call | |
complete | function | No | Callback function used when API call completed (always executed whether call succeeds or fails) |
# object.success callback function
# Parameters
# Object object
Property | Type | Description |
---|---|---|
data | string | The clipboard content |
# Sample Code
wx.getClipboardData({
success (res){
console.log(res.data)
}
})