Calculation table continuous serial number

Calculation table continuous serial number

For example, the serial number of the first page of the form is 1-10, the second page starts from 11, and the third page starts from 21

list.forEach((item,index)=>{
    
    
  // 计算表格连续型序号
  item.index = (pageNum -1) * pageSize + index + 1;
});

Guess you like

Origin blog.csdn.net/weixin_44224921/article/details/128804645