easyui序号实现累加

      由于页面展示的需要,所以序号翻页需要实现累加。
field: 'rowNumbers',
					title: '序号',
					align: 'center',
					width: 5,
					formatter: function(val,rec,index){
					   var op = $('#certificateGrid').datagrid('options');
					   return op.pageSize * (op.pageNumber - 1) + (index + 1);
					}
在使用时,只需要将$("")中表格的名称改成自己的就可以了。

你可能感兴趣的:(随记)