首页 > 其他 > 详细

easyui中给table列表中加序号

时间:2020-01-14 16:24:35      阅读:442      评论:0      收藏:0      [点我收藏+]

技术分享图片

 

 

$(‘#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;
}
},

easyui中给table列表中加序号

原文:https://www.cnblogs.com/xianz666/p/12192043.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!