📜  对象中的循环键 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:53.499000             🧑  作者: Mango

代码示例3
const fruits = { apple: 28, orange: 17 }

for(key in fruits){
    console.log(key)
}