https://blog.csdn.net/lyn1772671980/article/details/79093459
let obj = {
‘a‘:‘aa‘,
‘b‘:‘bb‘,
‘c‘:‘cc‘,
‘d‘:‘dd‘
};
for(let i in obj){
console.log(i); //a b c d
console.log(obj[i]); // aa bb cc dd
}
————————————————
版权声明:本文为CSDN博主「麦兜_冰夕」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/lyn1772671980/article/details/79093459