layui.use(['table'], function () {
var $ = layui.$, table = layui.table;
var mergeColumns=['province','city'];//需要合并的列的field值,前面的包含后面
var col=[
{field: 'id', title: 'ID', width:80, sort: true, fixed: 'left'}
,{field: 'province', title: '省份', width:80}
,{field: 'city', title: '城市', width:80}
,{field: 'sex', title: '性别', width:80, sort: true}
,{field: 'sign', title: '签名', width: 177}
,{field: 'experience', title: '积分', width: 80, sort: true}
,{field: 'score', title: '评分', width: 80, sort: true}
,{field: 'classify', title: '职业', width: 80}
,{field: 'wealth', title: '财富', width: 135, sort: true}
];
var tableSetting = {
id: &#
基于layui中table组件的数据表格单元格合并
最新推荐文章于 2024-04-04 09:45:30 发布