
15/05/2012, 14:31
|
 | Colaborador | | Fecha de Ingreso: junio-2008
Mensajes: 5.032
Antigüedad: 16 años, 7 meses Puntos: 1012 | |
Respuesta: como generar el array? prueba así Cita: var obj = {"0":null,"5":{"5":true,"7":true},"7":{"0":true ,"5 ":true,"7":true}};
for(var i in obj) {
console.log(i, '-->' ,obj[i], 1);
for(var j in obj[i]) {
console.log(j, '-->' ,obj[i][j], 2);
}
} |