layui 给数据表格加序号
layui 给数据表格加序号
1,第一种需求,只给当前页加序号
(1),给你的数据加上 templet属性
{field:‘zizeng’, width:80, title: ‘排名’,fixed: ‘left’,templet:’#zizeng’}
(2)在table的下面加上:
{field:'zizeng', width:80, title: '排名',fixed: 'left',temp...
原创
2019-06-10 10:19:44 ·
661 阅读 ·
0 评论