jquery easyUI里面的dataGrid,总是不显示内容,是怎么回事?
下面是我返回的数据格式:[{"id":"1","blood_glucose":"5.2","systolic_pressure":"120","diastolic_pre...
下面是我返回的数据格式:
[
{
"id": "1",
"blood_glucose": "5.2",
"systolic_pressure": "120",
"diastolic_pressure": "89",
"TC": "2.36",
"TG": "4.56",
"HDL_C": "6.2",
"LDL_C": "2.5",
"collect_date": "2014-08-20",
"add_date": "2014-08-20"
},
{
"id": "2",
"blood_glucose": "5.2",
"systolic_pressure": "120",
"diastolic_pressure": "89",
"TC": "2.36",
"TG": "4.56",
"HDL_C": "6.2",
"LDL_C": "2.5",
"collect_date": "2014-08-21",
"add_date": "2014-08-21"
},
{
"id": "7",
"blood_glucose": "1",
"systolic_pressure": "",
"diastolic_pressure": "0",
"TC": "0",
"TG": "0",
"HDL_C": "0",
"LDL_C": "0",
"collect_date": "0000-00-00",
"add_date": "0000-00-00"
}
]
下面是HTML页面中的代码:
<thead>
<tr>
<th field="blood_glucose" width="50">血糖</th>
<th field="systolic_pressure" width="50">收缩压</th>
<th field="diastolic_pressure" width="50">舒张压</th>
<th field="TC" width="50">总胆固醇</th>
<th field="TG" width="50">甘油三酯</th>
<th field="HDL_C" width="50">HDL_C</th>
<th field="LDL_C" width="50">LDL_C</th>
<th field="collect_date" width="50">采集时间</th>
<th field="add_date" width="50">添加时间</th>
</tr>
那块出错误了呢? 展开
[
{
"id": "1",
"blood_glucose": "5.2",
"systolic_pressure": "120",
"diastolic_pressure": "89",
"TC": "2.36",
"TG": "4.56",
"HDL_C": "6.2",
"LDL_C": "2.5",
"collect_date": "2014-08-20",
"add_date": "2014-08-20"
},
{
"id": "2",
"blood_glucose": "5.2",
"systolic_pressure": "120",
"diastolic_pressure": "89",
"TC": "2.36",
"TG": "4.56",
"HDL_C": "6.2",
"LDL_C": "2.5",
"collect_date": "2014-08-21",
"add_date": "2014-08-21"
},
{
"id": "7",
"blood_glucose": "1",
"systolic_pressure": "",
"diastolic_pressure": "0",
"TC": "0",
"TG": "0",
"HDL_C": "0",
"LDL_C": "0",
"collect_date": "0000-00-00",
"add_date": "0000-00-00"
}
]
下面是HTML页面中的代码:
<thead>
<tr>
<th field="blood_glucose" width="50">血糖</th>
<th field="systolic_pressure" width="50">收缩压</th>
<th field="diastolic_pressure" width="50">舒张压</th>
<th field="TC" width="50">总胆固醇</th>
<th field="TG" width="50">甘油三酯</th>
<th field="HDL_C" width="50">HDL_C</th>
<th field="LDL_C" width="50">LDL_C</th>
<th field="collect_date" width="50">采集时间</th>
<th field="add_date" width="50">添加时间</th>
</tr>
那块出错误了呢? 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询