for …in 遍历数组 for (const key in invoicesList) { if(invoicesList[key].id == object.id){ invoicesList[key].waivePriceTaxAmount = object