table.render({
id: 'field',
elem: '#demo',
type: 'checkbox'
, width: 600
, height: 350
, url: path + 'table/field/' + url + '/' + database + '/' + t
, cols: [[ //表头
{ type: 'checkbox' },
{ field: 'columnName', title: '字段', width: 150 },
{ field: 'columnType', title: '类型', width: 150 },
, { title: '查询类型', toolbar: '#barDemo' }
]]
});
问题就在cols 最后一行多加了逗号,去掉即可恢复