copy(text) {
let copyInput = document.createElement('input')
document.body.appendChild(copyInput)
copyInput.setAttribute('value', text)
copyInput.select()
document.execCommand('Copy')
copyInput.remove()
},
复制文本到粘贴板
最新推荐文章于 2024-07-24 23:00:08 发布