读书人

Javascript在网页复制内容后粘贴是带下

发布时间: 2012-11-09 10:18:48 作者: rapoo

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>

?

读书人网 >JavaScript

热点推荐