1 let protocalNum = []; 2 //數組循環 3 sampleList.cbpiList.forEach((item,index) => { 4 protocalNum.push(item.STR_BALANCE_CODE); 5 }); 6 /* 多條勾選打印結算單會出現重復的結算單號 去重處理 */ 7 let getProtocalNum = new Set(protocalNum); 8 let getProtocalNumArr = Array.from(getProtocalNum);