转载:https://segmentfault.com/q/1010000011040346
columns:[{
field: 'number',
title: '序号',
formatter:function(value,row,index){
var pageSize = $('#tableId').bootstrapTable('getOptions').pageSize;
var pageNumber = $('#tableId').bootstrapTable('getOptions').pageNumber;
return pageSize * (pageNumber - 1) + index + 1;
}
}]