document.body.oncopy = function () { setTimeout( function () { var text = clipboardData.getData("text"); if (text) { text = text + "——本文来自数字宿迁论坛『www.sq01.cn』原帖地址:"+"{$boardurl}viewthread.php?tid=$tid&fromuid=$discuz_uid"; clipboardData.setData("text", text); } }, 10 ) }