Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
478 views
in Technique[技术] by (71.8m points)

javascript - 我如何在响应中的甜蜜警报中实现单击复制功能?(How can i implement single-click-copy functionality in sweet alert in react?)

I have a sweet alert in one of my react component which displays an Id(ex:Student Id) from an API.

(我的react组件之一显示一个甜美的警报,其中显示了API的ID(例如:学生ID)。)

Right now, i am able to display the Id in the sweet alert with some message.

(现在,我可以通过一些消息在甜蜜警报中显示ID。)

But i have to make the id as single-click-copy.

(但我必须将ID设为单击复制。)

Please help me with this.

(请帮我解决一下这个。)

Ex: Student Id is std123.

(例如:学生编号为std123。)

I want to make this std123 as single click copy.

(我想将此std123作为单击复制。)

  ask by Abhi translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...