[{ "title": "parent", "expanded": true, "folder": true, "id": "0", "children": [ { "title": "parent[0]", "expanded": true, "folder": true, "id": "1", "children": [ {"title": "Books","id": "2"}, {"title": "Kindle Books","id": "3"}, {"title": "Books For Study","id": "4"}, {"title": "Audiobooks","id":"5"} ] }, { "title": "parent[1]", "id": "6", "folder": true, "children": [ {"title": "Music", "id": "7"}, {"title": "MP3 Downloads", "id": "8"}, {"title": "Musical Instruments & DJ", "id": "9"}, ] } ] }]
想根據(jù)id來(lái)刪除數(shù)組中的某一項(xiàng),數(shù)組長(zhǎng)度不確定,是嵌套的,知道用遞歸。。但是不會(huì)寫(xiě),哪位能幫忙寫(xiě)下。。