- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
function alertObj(obj) {
var str = "";
for(k in obj) {
if (typeof obj[k] == "object") {
str += k+":<br />";
for(kk in obj[k]) {
if (typeof obj[k][kk] == "object") {
str += "--"+kk+":<br />";
for(kkk in obj[k][kk]) {
str += "----"+kkk+": "+ obj[k][kk][kkk]+"<br />";
}
} else {
str += "--"+kk+": "+ obj[k][kk]+"<br />";
}
}
} else {
str += k+": "+ obj[k]+"<br />";
}
}
alert(str);
}