【工具箱】复制进剪切板

mac2022-06-30  20

private copyInClipper(txt) { let copy = document.createElement("input"); copy.value = txt; document.body.appendChild(copy); copy.select(); copy.setSelectionRange(0, copy.value.length), document.execCommand('Copy'); document.body.removeChild(copy); }

然后粘贴还有其他js方法.https://www.cnblogs.com/tylerdonet/p/4533782.html

转载于:https://www.cnblogs.com/harrickheng/p/11284701.html

相关资源:织梦DEDECMS站长专用工具箱
最新回复(0)