ЙажаСценарий / Говнокод #16301 Ссылка на оригинал

0

  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
for ( var i in data){
            flat_data.push(data[i]);       
            if (data[i].children){
                for (var j in data[i].children){
                    flat_data.push(data[i].children[j]);
                    if (data[i].children[j].children){
                        for (var z in data[i].children[j].children){
                            flat_data.push(data[i].children[j].children[z]);
                        }
                    }
                }
            }
        }

Вот с таким кодом приходится работать...

Запостил: monstrodev monstrodev, (Updated )

Комментарии (2) RSS

Добавить комментарий

Из-за тебя ушел bormand, guest!

    А не использовать ли нам bbcode?


    8