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.

Menu