87,993
社区成员
发帖
与我相关
我的任务
分享
[
{beanTestId: 59, beanTestName: "评测1", id: 244, isTested: 0, itemDescription: ""},
{beanTestId: 59, beanTestName: "评测2", id: 268, isTested: 0, itemDescription: ""}
]
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/ui/themes/default/easyui.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/ui/themes/icon.css">
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/static/ui/demo.css">
<script type="text/javascript" src="${pageContext.request.contextPath}/static/ui/jquery.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/ui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/static/ui/easyloader.js"></script>
</head>
<body>
<div id="dlg" class="easyui-dialog" title="评测" style="width:100%;height:100%;"
data-options="resizable:true,modal:true">
<table id="dg" class="easyui-datagrid" style="width:100%;height:100%;"
data-options="singleSelect:true,collapsible:true">
<thead>
<tr>
<th data-options="field:'beanTestId',width:80">表名 </th>
<th data-options="field:'id',width:80">信息 </th>
<th data-options="field:'isTested',width:100">详细信息</th>
</tr>
</thead>
</table>
</div>
<script type="text/javascript">
var jsonObj = ${testInfos};
var total = jsonObj.length;
console.log(jsonObj);
var datasource = { 'total': total, 'rows':jsonObj};
$("#dg").datagrid('loadData',datasource);
</script>
</body>



