bootstrap 实现用 table 表格显示list数据
来源:互联网 发布:即时通讯软件下载 编辑:程序博客网 时间:2024/05/06 03:51
- 后台如何获取list数据的就不详细解释了,传递到前台的方式,我用的是
model.addAttribute("categories",categories);
2.接下来前台可以通过${categories}来获取list数据
使用 foreach 循环显示数据以及其属性
<table class="table table-hover table-bordered"> <thead> <tr> <th hidden="hidden">序号</th> <th>类别名称</th> <th>助记码</th> <th>操作</th> </tr> </thead> <tbody id="J_template"> <c:if test="${fn:length(categories) == 0}"> <tr> <td style="text-align: center;"> 无查询结果</td> </tr> </c:if> <c:if test="${fn:length(categories) > 0}"> <c:forEach var="category" items="${categories}"> <tr id="item"> <td hidden="hidden">${category.id}</td> <td>${category.name}</td> <td>${category.mnemonicCode}</td> <td> <div class="visible-md visible-lg hidden-sm hidden-xs action-buttons"> <a id="editLink" class="blue" onclick="editCategory(${category.id},'${category.name}','${category.mnemonicCode}')" data-toggle="modal" data-target="#editModel" title="编辑" style="cursor:pointer;">[编辑]</a> <a id="delLink" class="blue" onclick="delCategory(${category.id})" data-toggle="modal" data-target="#tipModel" title="删除" style="cursor:pointer;">[删除]</a> </div> </td> </tr> </c:forEach> </c:if> </tbody></table>
0 0
- bootstrap 实现用 table 表格显示list数据
- 用js快速动态生成bootstrap table表格数据
- Bootstrap-Table实现从服务器加载数据进行显示
- Bootstrap-Table实现从服务器加载数据进行显示
- Bootstrap-Table实现从服务器加载数据进行显示
- bootstrap-table实现两个表格之间数据的传递,表格添加行删除行功能
- bootstrap-table 实现表格增删改查
- Bootstrap table-ERP-数据列表显示方法
- Bootstrap表格插件--bootstrap-table
- bootstrap-table表格事件
- Bootstrap Table实现定时刷新数据
- bootstrap-table行内编辑表格的实现
- bootstrap-table显示数据时显示No matching records found
- bootstrap table 表格学习笔记
- bootstrap table的父子表格
- bootstrap的table表格使用
- Bootstrap Table 表格参数详解
- bootstrap table 显示行号
- 手把手叫你 制作一个不需要任何工具 从网页上安装ipa包的办法
- OkHttp response.body().string()
- Oracle 数据库导入导出 dmp文件
- 晨魅--时间处理方法
- as 和 with的区别
- bootstrap 实现用 table 表格显示list数据
- 查看当前Git工具的版本
- Rosenblatt感知器详解
- Ubuntu上搭建Hadoop环境(单机模式+伪分布模式)
- 10-11-12 IO复用及select例子
- Pre-Note
- 用vector构造二维数组
- com.zry.recyclerviewdemo分割线
- 论文阅读:SSD: Single Shot MultiBox Detector