零散知识点:
1.Jquery获取table第一行
如下的table
<div class="form-group">
<table id="appTable" class="table table-bordered table-hover">
<tr class="active">
<th>序号</th>
<th>内容</th>
</tr>
</table>
</div>
Jquery获取table第一行并删除其余的行
$("#appApplyTable tr").not(':eq(0)').remove();
2.select2清空值但无需初始化
<select style="width: 200px;" class="appSelect select2-control" id="applyApp1"></select>
Jquery代码:
$(".appSelect").select2("val", "");