📜  对象 js 上的 for 循环 - Javascript 代码示例

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

代码示例6
// an easy way is to

const obj = {1: 'a', 2: 'b', 3: 'c',};

for (const i in obj)
  console.log(obj[i]);

//it is a simple way to loop on values of an object