function copy (str) {
let oInput = document.createElement('input')
oInput.value = str
document.body.appendChild(oInput)
oInput.select()
document.execCommand("Copy")
oInput.style.display = 'none'
document.body.removeChild(oInput)
window.alert('复制成功')
}
版权声明:本文为qq_17347575原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。