剪切板
-
-
copy(txt, event)
-
复制
Parameters:
Name Type Default Description txtstring '' 复制的字符串
eventevent Returns:
- Type:
- Promise
Example
$api.clip.copy("复制的字符串", event).then((e) => { this.$toast.success('复制成功') })
剪切板
复制
| Name | Type | Default | Description |
|---|---|---|---|
txt |
string | '' | 复制的字符串 |
event |
event |
$api.clip.copy("复制的字符串", event).then((e) => {
this.$toast.success('复制成功')
})