0.0.2 • Published 4 years ago

copy-text-pjs v0.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
4 years ago

Copy Text

在选择复制粘贴的内容后面添加自定义的信息

示例

npm.io

安装

npm i copy-text-pjs --save-dev

使用

import setCopyText from 'copy-text-pjs';

const copyRightText = `
<br />本文出自 A 网站,遵循版权协议,转载请附上原文出处链接及本声明
<br />原文链接:${location.href}
<br />Copyright © 2000 - ${new Date().getFullYear()} A, All right reserved. 粤 ICP 备 00000000
`;

setCopyText(copyRightText);
0.0.2

4 years ago

0.0.1

4 years ago