日期:2014-05-16 浏览次数:20310 次
<html> <head> <script> function insert(){ var insertText = "<table><tr><td>any thing</td></tr></table>"; document.getElementById("insert").innerHTML = document.getElementById("insert").innerHTML+insertText; } </script> </head> <body> <button onclick="insert()">Insert</button> <div id="insert"></div> </body> </html>