Skip to content

Home > robinson > copyToClipboard

copyToClipboard() function

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

将文本复制到剪贴板。

Signature:

typescript
declare function copyToClipboard(text: string): void;
declare function copyToClipboard(text: string): void;

Parameters

ParameterTypeDescription
textstring要复制到剪贴板的文本内容。

Returns:

void

Released under the MIT License.