How to connect via jquery data replication?

<button data-url="xxx" id="copyBtn"></button>
$("-sharpcopyBtn").click(function(e) {
  e.preventDefault();
  var url = e.currentTarget.dataset.url;

});

at present, url can catch the copy I want to copy
, but how do I copy it to the scrapbook? Can each server or every device be used?

Apr.09,2021

https://clipboardjs.com/
this plug-in is compatible with most browsers;
is very convenient;


this plugin is fine

.
Menu