给网页复制的内容添加东西
document.addEventListener("copy", copy);//监听复制事件 function copy(oEvent){ var text = oEvent.srcElement.innerHTML; if (text) { text = text + "\n-------本文来自“天天晒秘密”。 原文地址:"+location.href; oEvent.preventDefault(); oEvent.clipboardData.setData("text", text); } }