日期:2014-05-16 浏览次数:20489 次
<ul class="a" v=1"> <li>abc</li> <li>abc</li> <li>abc</li> </ul> <ul class="a" v=2"> <li>abc</li> <li>abc</li> <li>abc</li> </ul> <ul class="a" v=3"> <li>abc</li> <li>abc</li> <li>abc</li> </ul> <a href="javascript:void(0)" class="two">添加分类</a>
&(document).ready(function(){ $('.two').click(function(){ var addstr=''; addstr+="<ul class=\"a\">" addstr+="<li>abc</li>" addstr+="<li>abc</li>" addstr+="<li>abc</li>" addstr+="</ul>" $(addstr).insertAfter();//这里我想添加到V=1之后,该怎么写??? }); });