今天遇到一个需求,bpm系统通过路由链接回传一些信息,我们需要反向回显,但是在开发的时候 遇到选中的数据有重复的情况,这里做一下去重的记录。 const map = new Map() const temp = selection.filter(key => !map.has(key.invoiceNo) && map.set(key.invoiceNo, 1))