根据key值取出对应的Value值,返回所有的value值的数组
getValueByKey(arrayList) {
const arrayPickerData = [];
arrayList.forEach((Item) => {
const key = Object.keys(Item);
arrayPickerData.push(Item[key]);
});
return arrayPickerData;
}
getValueByKey(arrayList) {
const arrayPickerData = [];
arrayList.forEach((Item) => {
const key = Object.keys(Item);
arrayPickerData.push(Item[key]);
});
return arrayPickerData;
}