js中怎么复制<li>标签的代码?并且放到第一个<li>的后面!
<ulclass="list2"><liid="xh1"><imgalt=""src="images/image_66x66.gif"/><h3><a>aaaaa</a>...
<ul class="list2" >
<li id="xh1">
<img alt="" src="images/image_66x66.gif" />
<h3><a>aaaaa</a></h3>
<a>bbbb</a>
</li>
</ul>
我需要在ul中复制<li>标签中的的内容复制完一次是这样的,
<ul class="list2" >
<li id="xh1">
<img alt="" src="images/image_66x66.gif" />
<h3><a>aaaaa</a></h3>
<a>bbbb</a>
</li>
<li id="xh1">
<img alt="" src="images/image_66x66.gif" />
<h3><a>aaaaa</a></h3>
<a>bbbb</a>
</li>
</ul>
请问应该怎么实现? 展开
<li id="xh1">
<img alt="" src="images/image_66x66.gif" />
<h3><a>aaaaa</a></h3>
<a>bbbb</a>
</li>
</ul>
我需要在ul中复制<li>标签中的的内容复制完一次是这样的,
<ul class="list2" >
<li id="xh1">
<img alt="" src="images/image_66x66.gif" />
<h3><a>aaaaa</a></h3>
<a>bbbb</a>
</li>
<li id="xh1">
<img alt="" src="images/image_66x66.gif" />
<h3><a>aaaaa</a></h3>
<a>bbbb</a>
</li>
</ul>
请问应该怎么实现? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询