Skip to content

copyText ​

复制文本到剪贴板。

用法 ​

js
import { copyText } from 'rattail'

copyText('Hello, clipboard!') // 字符串会被写入剪切板

参数 ​

参数类型默认值
textstring

返回值 ​

类型
-