📜  从 pbject javascirpt 获取所有密钥 - Java 代码示例

📅  最后修改于: 2022-03-11 14:52:04.209000             🧑  作者: Mango

代码示例1
const object1 = {
  a: 'somestring',
  b: 42,
  c: false
};

console.log(Object.keys(object1)); // expected output: Array ["a", "b", "c"]

// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys