📜  如何遍历对象 javascript 代码示例中的键

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

代码示例6
let a = {x: 200, y: 1}
let attributes = Object.keys(a)
console.log(attributes)
//output: ["x", "y"]