在table里实现复选,在<thead> <tr>标签下加入<th style="width: 7%;height: 20px;"><input type="checkbox" /></th>如图所示
这里插入的复选框在页面效果如图:
然后在<tbody><tr>里加入<td><input type="checkbox" value="${item.id}"/></td>这里的value值是列表里边的id,这里必须要将id绑定进去,如图
在table里实现复选,在<thead> <tr>标签下加入<th style="width: 7%;height: 20px;"><input type="checkbox" /></th>如图所示
这里插入的复选框在页面效果如图:
然后在<tbody><tr>里加入<td><input type="checkbox" value="${item.id}"/></td>这里的value值是列表里边的id,这里必须要将id绑定进去,如图