利用javascript将网页上的对象复制到剪贴板中 Leave a Comment / Frontend / July 31, 2008 July 31, 2008 function copyToClipBoard(obj) { var rng = document.body.createTextRange(); rng.moveToElementText(obj); rng.scrollIntoView(); rng.select(); rng.execCommand("Copy"); rng.collapse(false); }