- 注册时间
- 2019-11-21
- 最后登录
- 1970-1-1
- 阅读权限
- 10
- 积分
- 220
- 精华
- 0
- 帖子
- 0
|
felt 发表于 2020-2-17 17:04
请按正确的格式返回数据
{total:num,data:[{},{}]}
其中total返回的数字是用来显示总数和总页数的,必须 ...
{
"total": 55931,
"data": [{
"pageSize":10,
"pageIndex":1,
"loginname": "11111",
"age": 25,
"gender": 1,
"dept_id": "js",
"email": "xzz@163.com",
"position_name": "前端工程师",
"salary": "3860",
"createtime": "2012-01-31T13:28:34",
"school": "宁波工程大学",
"name": "谢忠哲",
"educational_name": "本科",
"married": 0,
"educational": "2",
"id": "d6fb5410-adde-46a9-9d2b-dee99c64a83d",
"birthday": "1987-10-22T00:00:00",
"country": "fr",
"position": "js3",
"loginname": "xzz@163.com",
"remarks": "332",
"dept_name": "技术部"
}]
}
没用 还是NaN
因为我刚才下这个包再官网下的 我公司有买授权 但是我还没用,不懂会不会影响这个 ,
会不会因为过期了,
我就建了最简单的页面
代码付下
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>电缆信息</title>
<script type="text/javascript" src="${request.contextPath}/static/scripts/jquery.min.js"></script>
<script src="${request.contextPath}/static/scripts/boot.js" type="text/javascript"></script>
</head>
<body>
<div id="datagrid1" class="mini-datagrid" style="width:800px;height:280px;" idField="id"
url="<c:url value="/tunnel/tunnel/data/4.txt"></c:url>"
allowResize="true" pageSize="20"
>
<div property="columns">
<div type="checkcolumn"></div>
<div field="loginname" width="120" headerAlign="center"
allowSort="true" >通道分级</div>
</div>
</div>
</div>
</div>
</body>
<script type="text/javascript">
mini.parse();
var grid = mini.get("datagrid1");
grid.load();
</script>
</html>
|
|