• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

剪贴板实现文本复制的方法


Recommended Posts

1.下载地址:

https://github.com/mo3408/clipboard

2.使用方法:

先引入js:

脚本src=' dist/clipboard。量滴js '/script//根据自己路径设置

1 a href=' JavaScript : ' class=' BTN BTN-主要BTN-sm闪亮'数据-剪贴板文本='复制文本id='id '复制链接/a

一脚本类型='文本/javascript '

2 var clipboard=新剪贴板js(' # id ');

3 clipboard.on('成功,函数(e) {

四警报('复制成功!');

5 });

6/脚本

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now