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