相关文章推荐
阳刚的凉面  ·  C++ File文件处理 ...·  9 月前    · 
聪明的领带  ·  sql server ...·  10 月前    · 
另类的墨镜  ·  Matlab中错误使用 bsxfun ...·  1 年前    · 
{"field":"ORGNAME","title":"网格","rowspan":3,width:"80" }, { "field":"USERZH","title":"网格员","rowspan":3,width:"80" }, { "title":"工作纪律","rowspan":2 }, { "title":"民主互评","rowspan":2 }, { "title":"志愿者","rowspan":2 }, { "title":"加分项","colspan":2 }, { "title":"总分","rowspan":2 }, { "title":"平均分","rowspan":2 } { "title":"信息上报","rowspan":1 }, { "title":"简报采纳","rowspan":1 } { "field":"YW1","title":"5分","rowspan":1 }, { "field":"YW2","title":"5分","rowspan":1 }, { "field":"YW3","title":"6分","rowspan":1 }, { "field":"YW4","title":"8分","rowspan":1 }, { "field":"YW5","title":"5分","rowspan":1 }, { "field":"TOTAL","title":"","rowspan":1 }, { "field":"AVG","title":"","rowspan":1 }

效果如图:

从以上代码和图中可以看出表头共有4行9列, 画单元格就和HTML中一样,主要利用 rowspan、colspan 属性

在将要显示内容的列上添加 field 属性

作者: 陈彦斌