easyui中给table列表中加序号
作者:互联网
$('#xyData_healthList').datagrid({
width: 'auto',
height: 'auto',
striped: true,
fit: true,
pagination: true, scrollbarSize: 0,
singleSelect: true,
url: '<%=basePath%>xyData/health/getList.do?company_id=' + '<%=company_id%>' + '&usr_no=' + '<%=user_no%>',
loadMsg: '数据加载中请稍后……',
columns: [[
{
field: 'id',
title: '序号',
align: 'center',
resizable: false,
width: '10%',
formatter: function (value,index) {
return $("#xyData_healthList").datagrid("getRowIndex",index) +1;
}
},
标签:index,中加,easyui,xyData,datagrid,width,table,true,id 来源: https://www.cnblogs.com/xianz666/p/12192043.html