chenrenshui

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
function copyLink(){
var e = document.getElementById("copy");
e.select(); // 选择对象
document.execCommand("Copy"); // 执行浏览器复制命令
alert("复制链接成功!");
}
</script>
</head>
<body>
<textarea id="copy">复制链接成功</textarea>
<input type="button" onclick="copyLink();" value="点击复制"></input>
</body>
</html>

分类:

技术点:

相关文章:

  • 2021-12-20
  • 2021-11-14
  • 2022-12-23
  • 2022-12-23
  • 2021-09-18
  • 2021-12-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-10
  • 2021-12-03
  • 2021-12-30
相关资源
相似解决方案