js reduce求和

  let unReadCount = resultList.reduce((pre, cur) => {
    return pre + cur.unReadCount
  }, 0)

posted @ 2023-09-05 14:14  徐同保  阅读(2)  评论(0编辑  收藏  举报  来源