我用了easyui的datagrid,却接收不到数据
页面报错:Uncaught TypeError: Cannot read property 'length' of undefined
http://localhost:8080/erp02/retail/retailSearch页面的json信息是
{"status":0,"msg":"查询成功","data":[{"Status":false,"OperTime":1504020546000,"DefaultNumber":"LSCK201708290002","TotalPrice":42.0,"CreateTime":1504020579000,"ChangeAmount":42.0,"OperPersonName":"啊哈哈","Remark":""}
js
$(function(){
$('#retailTable').datagrid({
url:'/erp02/retail/retailSearch',
queryParams:'',
loadMsg:'Loading...',
singleSelect:true,
fitColumns:true,
columns:[[
{field:'DefaultNumber',title:'单据编号',width:100},
{field:'OperTime',title:'单据日期',width:100},
{field:'OperPersonName',title:'操作员',width:100},
{field:'TotalPrice',title:'金额合计',width:100},
{field:'ChangeAmount',title:'收款',width:100},
{field:'Status',title:'状态',width:100},
{field:'Remark',title:'备注',width:100},
{field:'CreateTime',title:'创建时间',width:100}
]]
});
});