javascipt浏览器复制文本
// value 要复制的内容 function copyTitle (value) { let input = document.createElement('input') document.body.appendChild(input) input.value = value input.select() document.execCommand('Copy') document.body.removeChild(input) alert('复制成功') }

浙公网安备 33010602011771号