var testObj = {
‘a‘:‘111‘,
‘b‘:‘222‘,
‘c‘:‘333‘,
‘d‘:‘444‘
}
for(var i in testObj){
console.log(i); //a,b,c,d
}
for(var i in testObj){
console.log(testObj[i]); //111,222,333,444
原文地址:https://www.cnblogs.com/Fourteen-Y/p/10487813.html
时间: 2024-10-07 15:34:02