function copyText(textValue) {
const input = document.createElement('textarea')
document.body.appendChild(input)
input.value = textValue
input.select()
document.execCommand('Copy')
input.remove()
}
js剪切文本
最新推荐文章于 2024-07-09 10:38:13 发布