函数 copyText

复制文本到剪贴板

copyText('Hello, world!')
  • 参数

    • text: string

      要复制的文本

    返回 Promise<void>