日期:2014-05-16  浏览次数:20482 次

Javascript在网页复制内容后粘贴是带上网站版权内容 代码
<script type="text/javascript">
document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text + "\r\n本文来自: 武汉明星整形医院 版权所有 Copyright 2010 mingxingzx.com All Right Reserved  内容地址:"+location.href; clipboardData.setData("text", text); } }, 100 ) }
</script>

?