摘要:
多个 if(num 1 || num 2 || num 3) 可以直接写成 [1,2,3].includes(num) // 第一种 /^1$|^2$|^3$/g.test(num) // 第二种 阅读全文
posted @ 2021-07-14 14:32
Met、life
阅读(115)
评论(0)
推荐(0)
摘要:
let obj = {}; const data2 = res.reduce((total, currentValue) => { obj[currentValue.workNumber] ? '' : obj[currentValue.workNumber] = true && total.pus 阅读全文
posted @ 2021-07-14 14:26
Met、life
阅读(29)
评论(0)
推荐(0)