📜  vue 复制图片到剪贴板 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:31.161000             🧑  作者: Mango

代码示例1
// Copies the image as a blob to the clipboard (PNG only)
navigator.clipboard.write([
  new window.ClipboardItem({
    [blob.type]: blob,
  }),
])