How can I use clipboard.js to perform the replication function after the calling interface call is complete?

1. One of the requirements of the project is to click a button to perform the copy function, but the value that needs to be copied is obtained through the interface, so it cannot be obtained the first time, so the first click on the button will not be successful. You have to click the second time to perform the copy function.
2. What should I do if I want to click the button at once to adjust the interface and perform the copy function?

Mar.13,2021

official documents

clipboard.png

The
  

click event first takes the value, adds a value to determine whether it exists, and then instantiates the clipboard to bind to the same button in this event.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e54978-658dd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e54978-658dd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?