lkj0 2018-02-07
用jquery 遍历函数-find()、eq()
<div class="box-body"> <table id="table1" class="table table-bordered table-striped"> <thead> <tr id="method_title"> <th rowspan="2">显示顺序</th> <th rowspan="2">名称</th> <th rowspan="2">顺序设置</th> <th rowspan="2">操作</th> </tr> </thead> <tbody id="table_body"></tbody> </table> <div id="result"></div> </div>2)效果图显示如下
$("#table1").find("tr").eq(2).find("td").eq(3).text(); //结果是id为label3 button的value.