jquery easyui datagrid 列和数据标准json 格式急。。。 10

下面json格式有什么问题求解{"columns":[[{"field":"one","title":"10:00","width":50},{"field":"two"... 下面json格式有什么问题求解
{"columns":[[{"field":"one","title":"10:00","width":50},{"field":"two","title":"10:05","width":50},{"field":"three","title":"10:10","width":50},{"field":"four","title":"10:15","width":50},{"field":"five","title":"10:20","width":50},{"field":"six","title":"10:25","width":50},{"field":"seven","title":"10:30","width":50},{"field":"eight","title":"10:35","width":50},{"field":"nine","title":"10:40","width":50},{"field":"ten",""title"":"10:45","width":50},{"field":"eleven","title":"10:50","width":50},{"field":"twelve","title":"10:55","width":50}]],"data":[{"total":24,"rows":[{"appId":1,"appName":"营销管理","average":0,"beginDate":"","deviation":0,"eaverage":0,"ebeginDate":"","eendDate":"","eight":0,"eighteen":0,"eleven":7.491,"emaxinum":0,"endDate":"","fault":0,"fifteen":0,"five":0,"forty":0,"fortyOne":0,"fortyTwo":0,"four":0,"fourteen":0,"id":0,"maxinum":0,"minnum":0,"nine":2.491,"nineteen":0,"one":0,"optime":null,"passnum":0,"runDate":"2014-07-14","seven":0,"seventeen":0,"six":0,"sixteen":0,"status":"00","stopNum":0,"ten":6.491,"thirteen":0,"thirty":0,"thirtyEight":0,"thirtyFive":0,"thirtyFour":0,"thirtyNine":0,"thirtyOne":0,"thirtySeven":0,"thirtySix":0,"thirtyThree":0,"thirtyTwo":0,"three":0,"time":"","twelve":5.491,"twenty":0,"twentyEight":0,"twentyFive":0,"twentyFour":0,"twentyNine":0,"twentyOne":0,"twentySeven":0,"twentySix":0,"twentyThree":0,"twentyTwo":0,"two":0,"type":"查询工作单"}]}]}
展开
 我来答
tianheww
推荐于2018-07-30 · TA获得超过140个赞
知道小有建树答主
回答量:230
采纳率:66%
帮助的人:69.8万
展开全部
1、datagrid实例化
$('#dg').datagrid({
url:'datagrid_data.json',

columns:[[
{field:'code',title:'Code',width:100},
{field:'name',title:'Name',width:100},
{field:'price',title:'Price',width:100,align:'right'}
]]
});
2、json数据格式
{"total":2,"rows":[
{"code":"RP-LI-02","name":"Persian","price":89.50},
{"code":"AV-CB-01","name":"Amazon Parrot","price":63.50}
]}
本回答被网友采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
诺记美利达
电脑发烧友

2014-10-30 · 不会修电脑,但是你问我的我都知道
知道大有可为答主
回答量:1.3万
采纳率:59%
帮助的人:3635万
展开全部
一眼看上去没有什么问题。。。。。
数据有问题。
你的data:xxxx 左侧的data也是你返回来的吗?
建议你打开easyui官网,看看里面的demo中的datagrid返回的格式。那个嘴标准
本回答被网友采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式