jQuery MiniUI
标题:
关于 datagrid的动态生成列头和表格内容
[打印本页]
作者:
601594589
时间:
2015-9-15 11:23:02
标题:
关于 datagrid的动态生成列头和表格内容
grid.set({
columns: [
{ field: "tax", headerAlign: "center", header: "税种" },
{ field: "taxplan", headerAlign: "center", header: "税收计划" },
{ headerAlign: "center", header: "税收种类",columns:[{header:"本月收入",field:"income_month"},{header:"税收增减额",field:"zjs_month"},{header:"同比增减",field:"tbzj_month"}] },
{ headerAlign: "center", header: "累计税收",columns:[{header:"累计收入",field:"income_total"},{header:"税收增减额",field:"zjs_total"},{header:"同比增减",field:"tbzj_total"}] },
{ field: "complete", headerAlign: "center", header: "完成进度" }]
,
data: [
{tax:"税种",taxplan:"",income_month:"72.8",zjs_month:"-30.4",tbzj_month:"-29.4%",income_total:"558.3",zjs_total:"-58.6",tbzj_month:"-9.1%",complete:""},
{tax:"税种",taxplan:"",income_month:"72.8",zjs_month:"-30.4",tbzj_month:"-29.4%",income_total:"558.3",zjs_total:"-58.6",tbzj_month:"-9.1%",complete:""}]
});
我向后台直接发请求。然后将数据加载进去
作者:
dforce
时间:
2015-9-15 11:38:37
向后台直接发请求是什么意思
只看到了前端的动态生成列和静态数据赋值
欢迎光临 jQuery MiniUI (http://miniui.com/discuss/)
Powered by Discuz! X2