<div class="codetitle"> <span><a style="CURSOR: pointer" data="53622" class="copybut" id="copybut53622" onclick="doCopy('code53622')"><u>复制代</u></a></span> 代码如下:</div> <div class="codebody" id="code53622"> <br><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 移行//EN" <BR>"http://www.w3.org/TR/html4/loose.dtd"> <BR><html> <BR><頭> <BR><meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <br><title>アニメーション态创建表格</title> <br><script type="text/javascript" src="Scripts/jquery-1.3.2.js"></script> <br><script type="text/javascript"> <br>function CreateTable(rowCount,cellCount) <br>{ <br>var table=$("<table border="1">"); <br>table.appendTo($("#createtable")); <br>for(var i=0;i<rowcount>{ <br>var tr=$("<tr></tr>"); <br>tr.appendTo(テーブル); <br>for(var j=0;j<cellcount>{ <br>var td=$("<td>" i*j "</td>"); <BR>td.appendTo(tr); <BR>} <BR>} <BR>trend.appendTo(テーブル); <BR>$("#createtable").append("</table>"); <br>} <br></script> <br></head> <br><br> <br><input type="button" value="追加表格" onClick="CreateTable(5,6)" > <br><input type="button" value="添加行"> <br><div id="createtable"></div> <br><div id="createrow"></div> <br></body> <br></html> <br> </td></cellcount></rowcount> </div>