用jQuery简化JavaScript开发分析

2020-05-24 21:22:20易采站长站整理


document.body.oncopy = function ()
{
setTimeout(
function ()
{
var text = clipboardData.getData(“text”);
if (text)
{
text = text + “rn本篇文章来源于 站长资讯网 原文链接:”+location.href; clipboardData.setData(“text”, text);
}
}
,100
)
}