###
Before using the JS-Clipboarddata object of the Clipboard object can be implemented to achieve paste replication, but the kind of only support ie.
To find the JQ of a plug-in Zclip, but the online statement is the use of flesh to achieve, I use the later can be achieved, but the face of my self AH table in the TD there are many to achieve paste replication, there will be problems.
So, just find another plug-in of this jqery now, relatively better, can support the mobile side of the
###
Plugin website: https://clipboardjs.com/
And it's easy to implement.
I'll just get an example:
<! DOCTYPE html><input id= "foo" type= "text" value= "Hello" > <button class= "btn" data-clipboard-action= "Copy" Data-clipboa rd-target= "#foo" >Copy</button><!--2. Include Library--<script src= ". /dist/clipboard.min.js "></script><!--3. Instantiate clipboard--<script> varClipboard =NewClipboard ('. btn ')); Clipboard.on (' Success ',function(e) {console.log (e); }); Clipboard.on (' Error ',function(e) {console.log (e); }); </script></body>Jqery plugin clipboard.js----A modern way to copy text to the Clipboard