<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title></title>
</head>
<body>
</body>
<script type="text/javascript">
handleCopy(content: string) {
navigator.clipboard.writeText(content).then(
() => {
this.$message.success('复制成功')
},
() => {
}
)
}
handleCopy1(content: string) {
const ele = document.createElement('input')
ele.setAttribute('value', content)
document.body.appendChild(ele)
ele.select()
document.execCommand('Copy')
document.body.removeChild(ele)
}
</script>
</html>