에 대한 해시의 배열을 만들? 이 질문은 게으른 게시물을 보일 수 있습니다,하지만 지금이 해결 20 개 이상의 시간을 보냈습니다 :, 동적으로 내가 좋아하는, 배열 정렬 파일의 목록을 dynatree
[{"name"=>".", "title" => ".", "isDir" => true, "children" =>
[{"name"=>"a.txt", "title" => "a.txt"},
{"name"=>"b.txt", "title" => "b.txt"},
{"name" => "bar", "title"=>"bar", "isDir"=>true, "children" =>
[{"name" => "z.php", "title" => "z.php"},
{"name" => "foo", "title" => "foo", "isDir" => true, "children" =>
[{"name" => "x.php", "title" => "x.php"},
{ "name" => "hello", "title" => "hello", "children" =>
[{"name" => "y.php", "title"=>"y.php"}
]
}
]
}
]
}
]
}]
PS : 그것을위한 dynatree 객체처럼 보일 것입니다. 그래서 어떤 도움을 주시면 감사하겠습니다. 감사.
귀하의 요구는 항상 .. * 터프 * ... :-) –