Thursday, 6 June 2013

Iterate Java Map Through Javascript

for (var i = 0, keys = Object.keys(a_hashmap), ii = keys.length; i < ii; i++) 
{
       console.log('key : ' + keys[i] + ' val : ' + a_hashmap[keys[i]]);
}
Reactions:

0 comments:

Post a Comment

Leave a comment on blog quality.

Blogger

Related Posts Plugin for WordPress, Blogger...