我面临创建我的 firstSection(div)的克隆并将其粘贴到 secondSection 的问题。
<script type="text/javascript">
$(document).ready(function(){
$("#firstSection").clone().prependTo("#secondSection");
});
</script>
<table width="100%" border="1">
<div id="firstSection">
<tr>
<td>1</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>2</td>
<td>2</td>
<td>2</td>
</tr>
<tr>
<td>3</td>
<td>3</td>
<td>3</td>
</tr>
</div>
<div id="secondSection">
<tr>
<td>9</td>
<td>9</td>
<td>9</td>
</tr>
</div>
</table>