怎么建成这样啊 像第二张图那种写
调用mergeCells进行单元格合并:http://www.jeasyui.com/documentation/index.php
mergeCells
options Merge some cells to one cell, the options contains following properties:
index: the row index.
type: the row type, possible values are 'body','footer'.
field: the field name.
rowspan: the rowspan count to be merged.
colspan: the colspan count to be merged.
Code example:
// merge the footer rows
$('#dg').datagrid('mergeCells', {
index: 1,
field: 'name',
colspan: 2,
type: 'footer'
});