1、html
<form id="queryForm" name="queryForm"
action="/list/toHtml"
method="post">
<#--已勾选的数据-->
<input id="chooseIds" name="chooseAllIds" type="hidden" value="${chooseAllIds!''}">
<#--当前筛选条件下非分页的全部数据-->
<input id="allIds" name="allIds" type="hidden" value="${allIds!''}">
</form>
<label>
<#if allCheckBox?? && allCheckBox>
<input type="checkbox" class="checkbox" name="allCheckBox"
id="allCheckBox" checked>全部全选
<#else >
<input type="checkbox" class="checkbox" name="allCheckBox"
id="allCheckBox">全部全选
</#if>
</label>
<table>
<thead>
<tr>
<th width="2%">
<#if currentPageCheck?? && currentPageCheck == '1'>
<label><input type="checkbox" class="checkbox" name="currentCheck"
style="width: 60px;" checked>本页全选</label>
<#else >
<label>