文章目录

Vanessa

成为 B3log 赞助者

标签: copystring (1)

文章复制添加版权

/* @description 添加版权 */ const addCopyright = () => { const genCopy = () => { return [ '', '', '作者:Vanessa', '链接:https://hacpai.com/article/1510544423932', '来源:黑客派', '著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。', ] } $('.content-reset').on('copy', function (event) { if (!window.getSelection) { return } let copyString = window.getSelection().toString() if (copyString.length < 128) { return } if ('object' === typeof event.originalEvent.clipboardData) { event.originalEvent.clipboardData.setData('....