📅  最后修改于: 2022-03-11 15:04:22.389000             🧑  作者: Mango
const numbers = {
one: 1,
};
const objectArray = Object.entries(numbers);
objectArray.forEach(([key, value]) => {
console.log(key); // 'one'
console.log(value); // 1
});