Flex 遍历Object键和值的示例代码

Tags: flex

遍历键

for(var k:String in obj) { 
trace("Key: " + k + " - value: " + obj[k]); 
}

遍历值

for each(var v:* in obj) { 
trace("Value: " + v); 
}

本文链接:http://www.4byte.cn/learning/21542.html