[{ "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来删除数组中的某一项,数组长度不确定,是嵌套的,知道用递归。。但是不会写,哪位能帮忙写下。。
付费偷看金额在0.1-10元之间
}];
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<body>
<script type="text/javascript">
</script>
</body>
</html>
一周热门 更多>