把下面的代码复制到
...里面:<script type="text/javascript">
document.body.oncopy = function () {
setTimeout( function () {
var text = clipboardData.getData("text");
if (text) {
text = text + "\r\n文章来自:小萌博客{ blog.luoli.net } 详细出处请参考:"+location.href; clipboardData.setData("text", text);
}
}, 100 )
}
</script>