Este artículo describe la implementación simple de JS para copiar enlaces. Compártelo para su referencia, como sigue:
< xmlns = "http://www.w3.org/1999/xhtml"> <fead> <meta http-equiv = "content-type" content = "text/html; charset = gb2312"/> <title> haga clic en el enlace de copia </title> </head> <body> <body type = "text" size "30" value = "// www.vevb.com/"><input type =" button "value =" copy link 1 "onClick =" copyUrl () "> <script type =" text/javaScript "> function copyUrl () {var url = document.getElementById (" url "). Value; window.clipboarddata.setData ("texto", url); alerta ("Copiar el éxito del enlace!");} </script> <input type = "button" value = "Copy Link 2" onClick = "url.select (); document.execcommand ('copy')"> <br/> <br/> wulin.com proporciona dos formas simples de copiar enlaces. Creo que siempre hay uno que te adapta ~ o (∩_∩) o ~ </body> </html>For more information about JavaScript related content, please check out the topics of this site: "Summary of JSON operation skills in JavaScript", "Summary of JavaScript switching effects and techniques", "Summary of JavaScript search algorithm skills", "Summary of JavaScript animation special effects and techniques", "Summary of JavaScript errors and debugging skills", "Summary of JavaScript data structures and Habilidades de algoritmo "," Resumen de los algoritmos y técnicas de traversal JavaScript "y" Resumen del uso de operaciones matemáticas de JavaScript "
Espero que este artículo sea útil para la programación de JavaScript de todos.