📜  复制到剪贴板 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:09.753000             🧑  作者: Mango

代码示例6
const copyToClipboard = (text) => navigator.clipboard.writeText(text);

copyToClipboard("Hello World");