标签:obj strong span 遍历 for key OLE 结果 style
var obj = {name: "psg", age: 22, gender: "male"};
// for in 遍历
for(var key in obj) {
console.log(key, obj[key]);
}
输出结果为
name psg , age 22 , gender male
标签:obj strong span 遍历 for key OLE 结果 style
原文地址:https://www.cnblogs.com/sq652366/p/13083387.html