赞
踩
于是,使用了layui的数据表格,但是遇到了一个问题,数据有返回,但是页面加载不出来。
仔细检查后发现,我的java中代码返回的是List格式的数据;
- List <Columns> list =columnService.getAllCols(tabId, id);
- return list;
然而layui的table默认返回的数据格式为:
response: { //定义后端 json 格式,详细参见官方文档
code: 0,
msg: "",
count: 1000,
data: []
}
即,为如下格式:
{"code":0,"msg":"","count":1000,"data":[{"colName":"ID","colNo":0,"collator":"","comments":"","dbId":1,"defVal":"","deleted":"","dispersion":0,"domainId&
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。