大神帮看看啊,使用easyui中的datagrid请求后台数据已经响应了,页面上数据却显示不出来

纯洁的大白 纯洁的大白 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
前台:
$("#grid").datagrid({
fit : true,
border : true,
rownumbers : true,
striped : true,
toolbar : [ {
id : 'diaodu',
text : '人工调度',
iconCls : 'icon-edit',
handler : function() {
// 弹出窗口
$("#diaoduWindow").window('open');
}
} ],
url : "${pageContext.request.contextPath}/notice_listNoStaffNoticeBill.action",
columns : [ [ {
field : 'id',
title : '编号',
width : 100
}, {
field : 'delegater',
title : '联系人',
width : 100
}, {
field : 'telephone',
title : '电话',
width : 100
}, {
field : 'pickaddress',
title : '取件地址',
width : 100
}, {
field : 'product',
title : '商品名称',
width : 100
}, {
field : 'pickdate',
title : '取件日期',
width : 100,
formatter : function(data, row, index) {
return data.replace("T", " ");
}
} ] ]
});
后台:
public String listNoStaffNoticeBill() throws IOException{

List<Noticebill> list = noticeService.findNoStaffNoticeBill();

String[] excludes = new String[]{"workbills","user","staff","customerId",
"customerName","arrivecity","num","weight","volume","remark","ordertype"};

this.writeList2Json(list, excludes);

return null;
}

通过开发者工具可以看到响应回来的数据

响应载荷哪里是
[{"delegater":"Lucy","id":"4028854f61c03bc10161c0489afc0000","pickaddress":"容县中学","pickdate":{"date":1,"day":4,"hours":0,"minutes":0,"month":1,"nanos":0,"seconds":0,"time":1517414400000,"timezoneOffset":-480,"year":118},"product":"电脑","telephone":"1"}]
...全文

相关推荐

评论 3
收藏 已收藏
分享
返回顶部
纯洁的大白
JavaScript 87,983 成员 224,681 内容