日期:2014-05-16 浏览次数:20370 次
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> New Document </TITLE> <META NAME="Generator" CONTENT="EditPlus"> <META NAME="Author" CONTENT=""> <META NAME="Keywords" CONTENT=""> <META NAME="Description" CONTENT=""> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <script> function insert() { var table = document.getElementById("a"); var trs = ""; for(var i = 0; i < 10000; i++) { trs += "<tr><td>"+i+"</td><td>"+i+"</td><td>"+i+"</td><td>"+i+"</td><td>"+i+"</td><td>"+i+"</td><td>"+i+"</td></tr>"; } table.innerHTML = '<table border="1">'+trs+'</table>'; } </script> </HEAD> <BODY> <div id="a"> </div> <input type="button" value="insert" onclick="insert();" /> </BODY> </HTML>