删除嵌套数组中的某一项?
[{ "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"}, ] } ] }]
想根据id来删除数组中的某一项,数组长度不确定,是嵌套的,知道用递归。。但优艾设计网_Photoshop百科是不会写,哪位能帮忙写下。。
文字交流 20小时前 优艾设计网_设计百科
</script></body></html>
蓬思菱 20小时前
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Document</title></head><bo优艾设计网_Photoshop论坛dy> <script type="text/javascript">
就这样不改变 20小时前 优艾设计网_PS百科
}];
精彩评论