JS复制特定内容到粘贴板
[removed] function readTxt() { alert(window.clipboardData.getData(“text”)); } function setTxt() { var t=document.getElementById(“txt”); t.select(); window.clipboardData.setData(‘text’,t.createTextRange().text); } [removed] <input name=”txt” value=”测试”> <input type=”button” value
下载地址
用户评论