Home >php教程 >PHP开发 >Flex example code for traversing Object keys and values

Flex example code for traversing Object keys and values

高洛峰
高洛峰Original
2016-12-27 16:59:021126browse

Traverse key

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

Traverse value

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

More Flex Traverse Object For articles related to sample code of keys and values, please pay attention to the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn