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

Flex example code for traversing Object keys and values

高洛峰
Release: 2016-12-27 16:59:02
Original
1127 people have browsed it

Traverse key

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

Traverse value

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

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template