layui表格中使用模板時需要注意
{field:'user',title: '出卷人', sort: true, templet:function(d){return '<div>'+d.user.username+'</div>'}}



1 JSONObject jsonObject = new JSONObject(); 2 Object objData = JSONObject.toJSON(數據); 3 jsonObject.put("code", 0); 4 jsonObject.put("msg", ""); 5 jsonObject.put("count", p.size()); 6 jsonObject.put("data", objData); 7 response.getWriter().print(jsonObject.toString());