var opts1;//分页
$('#datagrid_1').datagrid({
columns: [
[{
field: 'myNo',
title: '序号',
align: 'center',
width: 100,
formatter: function (value, row, index) {
if (!opts1) {
opts1 = $('#datagrid_1').datagrid('options');
}
return opts1.pageSize * (opts1.pageNumber - 1) + index + 1;
}
}
]
]
});
esyui-自定义序号
最新推荐文章于 2023-06-17 00:56:27 发布
![](https://img-home.csdnimg.cn/images/20240611030827.png)