一些trick的代码
2019-03-21 本文已影响0人
Djknight
key = key.replace(/\_(\w)/g, (all, letter) => letter.toUpperCase()); // 下划线转驼峰
const idcListByName = this.dictList.physical_idc.filter(v => ticketInfo.idc.includes(v.name)); // 找交集
key = key.replace(/\_(\w)/g, (all, letter) => letter.toUpperCase()); // 下划线转驼峰
const idcListByName = this.dictList.physical_idc.filter(v => ticketInfo.idc.includes(v.name)); // 找交集