With JS, it is convenient. Click a button, drag the black copy to automatically handle the problem, and then press Ctrl + V to OK!
PHP, JS, and ajalx learning!
Click the button and use JS CodeTo copy an input form:
Copy codeThe Code is as follows: <script language = "JavaScript">
Function copyinput ()
{
VaR input = Document. getelementbyid ("inputid"); // The id value of input
Input. Select (); // select an object
Document.exe ccommand ("copy"); // execute the browser Copy command
}
</SCRIPT>
Click the button to implement the table using JS Code:Copy codeThe Code is as follows: <script language = "JavaScript">
Function copytable ()
{
VaR TXT = Document. Body. createTextRange ();
TXT. movetoelementtext ("tableid"); // id value of the table
TXT. Select (); // select an object
Document.exe ccommand ("copy"); // execute the browser Copy command
}
</SCRIPT>