如何在角度9的数组对象内部替换字段名?

时间:2020-09-02 07:34:05

标签: javascript typescript angular9

如何在角度9的数组对象内部替换字段名?

data = [{Date: "0001-01-01T00:00:00",
EndTime: "0001-01-01T00:00:00",
IDS: null,
IsBlocked: false,
ORDER_ID: 0,
OrderStatus: 0,
PhotoUrl: "1e932efb-6db8-419a-9f79-4b6bc7d960c6.jpg",
ProviderID: 63,
ProviderName: "abcd",
ProviderStatus: 0,
StartTime: "0001-01-01T00:00:00",
Subject: null,
TimeSlot: null,
},{
Date: "0001-01-01T00:00:00",
EndTime: "0001-01-01T00:00:00",
IDS: null,
IsBlocked: false,
ORDER_ID: 0,
OrderStatus: 0,
PhotoUrl: "1e932efb-6db8-419a-9f79-4b6bc7d960c6.jpg",
ProviderID: 50,
ProviderName: "Abdul Kalam APJ",
ProviderStatus: 0,
StartTime: "0001-01-01T00:00:00",
Subject: null,
TimeSlot: null,
}
]

我想在不更改现有阵列的情况下将ProviderID替换为EmployeeId到另一个阵列

0 个答案:

没有答案