尝试了JS下两种复制到剪贴板的功能。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<div>
<input id="copy1" width="200px"/>
<button id="btnCopy1">复制到剪贴板1</button>
</div>
<div>
<input id="copy2"/>
<button id="btnCopy2">复制到剪贴板2</button>
<button id="revoke">撤销授权</button>
</div>
<div></div>
<script>
document.getElementById("btnCopy1").addEventListener("click", function(btn, ev) {