📜  循环遍历键值对js - Javascript代码示例

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

代码示例1
for (const [key, value] of Object.entries(object1)) {
  console.log(`${key}: ${value}`);
}