<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Strict // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <ptml xmlns = "http://www.w3.org/1999/xhtml"> <pead> <title> runcode </title> <meta http-equiv = "Content-Type" content = "text/html; charset = gb2312 "/> <meta name =" Author "content =" Sheneyan "/> <style type =" text/css "> </style> </pead> <body> <table id = "tt"> <tbody> <tr> <td> 123 </td> <td> 123 </td> <td> 1 23 </td> <td> 123 </td> </tr> <td> 123 </td> <td> 123 </td> <td> 123 </td> <td> 123 </td> </tr> <td> 123 </td> <td> 123 </td> <td> 123 </td> <td> 123 </td> </tr> </tbody> <tr> <td> abc </td> <td> abc </td> </tr> <td> abc </td> <td> abc </td> </tr> <td> abc </td> <td> abc </td> </tr> </tbody> </table> <button onclick = "delTbody ('TT ', 0) "> delete a table (This table only has two tbodies, so this button can only be pressed twice ......) </Button> </body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]