Javascript ~ get json key value

for (var key in p) {
if (p.hasOwnProperty(key)) {
alert(key + " -> " + p[key]);
}
}



reference
http://stackoverflow.com/questions/684672/loop-through-javascript-object

沒有留言: