📌  相关文章
📜  onclick 添加到剪贴板 - Javascript 代码示例

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

代码示例1
//U need to have a button with the id the same as its name because it is going to be sent to the clipborad.
/*Like this: */




function SelfCopy(copyText)
  {
      navigator.clipboard.writeText(copyText);
      alert("You just copied this: (" + copyText + ").");
  }