日期:2014-05-20 浏览次数:20919 次
<html>
<head><script src="http://code.jquery.com/jquery-1.8.2.min.js"></script></head>
<body>
<table>
<tr><td>序号</td><td>名称</td></tr>
<tr class="add"><td>1</td><td>
<table><tr class="add"><td>34</td></tr></table>
</td></tr>
<tr class="add"><td>2</td><td>测试</td></tr>
</table>
<script type="text/javascript">
var list=new Array();
$("table tr.add td:first-child").not("table table tr.add td:first-child").each(function(e){list.push($(this).html())});
alert(list.join(","))
</script>
</body>
</html>