treetable 使用前端页面出了bug

请叫我思空大人 2019-02-13 11:14:48
我是用treetable插件,但是当运行程序的时候

出现了这样的bug
下面是项目的部分源码

<table id="treeTable" class="table table-hover">
<thead>
<tr>
<th>ID</th>
<th>名称</th>
<th>管理</th>
</tr>
</thead>
<tbody>
<c:forEach items="${list}" var="list">
<tr id="${list.id}" pid="${list.parentId}" >
<td width="10%">${list.id}</td>
<td width="60%">${list.name}</td>
<td>
<a href="#" type="button" href="#" class="btn btn-sm btn-primary"><i class="fa fa-edit"></i>编辑</a>
<button onclick="" type="button" class="btn btn-sm btn-danger"><i class="fa fa-trash"></i>删除</button>
<a href="#" type="button" class="btn btn-sm btn-default"><i class="fa fa-plus"></i>新建一下级分类</a>
</td>
</tr>
</c:forEach>
</tbody>


</table>

这是前端页面的

<script type="text/javascript">
$(function(){
var option = {
expandLevel : 2
};
$('#treeTable').treeTable(option);
});
</script>


...全文
301 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复

bug 提示的图片在这里

87,903

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 JavaScript
社区管理员
  • JavaScript
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧