bootstrap-table设置某列序号自增

col = [{
    field: 'SerialNumber',
    title: '序号',
    formatter: function (value, row, index) {
        return index+1;
    }
}]