有以下数组
var array = [
{
"comment_id": 62,
"comment_module_id": 1393,
"comment_name": "阿斯顿发发",
"comment_email": "",
"comment_url": "",
"comment_ip": "127.0.0.1",
"comment_date": "2023-06-13 16:12:05",
"comment_content": "<p>撒打撒发撒发啥</p>",
"comment_approved": "approved",
"comment_parent": 54,
"comment_likes": 0,
"user_id": 1,
"user_avatar": "//cdn.vc.io/uploads/user/2023/06/c7f4bd91c1f55688290b854a504e5ed6.jpg",
"count_child": 0,
"count_child1": 0
},
{
"comment_id": 63,
"comment_module_id": 1393,
"comment_name": "阿斯顿发发",
"comment_email": "",
"comment_url": "",
"comment_ip": "127.0.0.1",
"comment_date": "2023-06-13 17:35:22",
"comment_content": "<p>大沙发沙发</p>",
"comment_approved": "approved",
"comment_parent": 61,
"comment_likes": 0,
"user_id": 1,
"user_avatar": "//cdn.vc.io/uploads/user/2023/06/c7f4bd91c1f55688290b854a504e5ed6.jpg",
"count_child": 0,
"count_child1": 0
},
{
"comment_id": 61,
"comment_module_id": 1393,
"comment_name": "阿萨法",
"comment_email": "",
"comment_url": "",
"comment_ip": "127.0.0.1",
"comment_date": "2023-06-05 09:42:32",
"comment_content": "<p>阿撒范德萨发</p>",
"comment_approved": "approved",
"comment_parent": 58,
"comment_likes": 0,
"user_id": 1,
"user_avatar": "//cdn.vc.io/uploads/user/2023/06/c7f4bd91c1f55688290b854a504e5ed6.jpg",
"count_child": 1,
"count_child1": 1
},
{
"comment_id": 58,
"comment_module_id": 1393,
"comment_name": "管理员3",
"comment_email": "",
"comment_url": "",
"comment_ip": "127.0.0.1",
"comment_date": "2023-05-30 14:32:54",
"comment_content": "<p>撒发啥发</p>",
"comment_approved": "approved",
"comment_parent": 50,
"comment_likes": 0,
"user_id": 1,
"user_avatar": "//cdn.vc.io/uploads/user/2023/06/c7f4bd91c1f55688290b854a504e5ed6.jpg",
"count_child": 1,
"count_child1": 1
},
{
"comment_id": 54,
"comment_module_id": 1393,
"comment_name": "admin",
"comment_email": "",
"comment_url": "",
"comment_ip": "127.0.0.1",
"comment_date": "2023-05-26 11:11:26",
"comment_content": "<p>asfg</p>",
"comment_approved": "approved",
"comment_parent": 50,
"comment_likes": 0,
"user_id": 1,
"user_avatar": "//cdn.vc.io/uploads/user/2023/06/c7f4bd91c1f55688290b854a504e5ed6.jpg",
"count_child": 1,
"count_child1": 1
},
{
"comment_id": 52,
"comment_module_id": 1393,
"comment_name": "管理员3",
"comment_email": "",
"comment_url": "",
"comment_ip": "127.0.0.1",
"comment_date": "2023-05-12 14:32:13",
"comment_content": "<p>杀骷髅法师看</p>",
"comment_approved": "approved",
"comment_parent": 50,
"comment_likes": 0,
"user_id": 1,
"user_avatar": "//cdn.vc.io/uploads/user/2023/06/c7f4bd91c1f55688290b854a504e5ed6.jpg",
"count_child": 0,
"count_child1": 0
},
{
"comment_id": 51,
"comment_module_id": 1393,
"comment_name": "asf",
"comment_email": "saf",
"comment_url": "safa",
"comment_ip": "127.0.0.1",
"comment_date": "2023-05-12 14:25:37",
"comment_content": "<p>ask龙卷风</p>",
"comment_approved": "approved",
"comment_parent": 50,
"comment_likes": 0,
"user_id": 1,
"user_avatar": "//cdn.vc.io/uploads/user/2023/06/c7f4bd91c1f55688290b854a504e5ed6.jpg",
"count_child": 0,
"count_child1": 0
},
{
"comment_id": 64,
"comment_module_id": 1393,
"comment_name": "正常",
"comment_email": "",
"comment_url": "",
"comment_ip": "127.0.0.1",
"comment_date": "2023-06-14 09:44:27",
"comment_content": "<p>萨法嘎嘎达萨法嘎</p>",
"comment_approved": "approved",
"comment_parent": 55,
"comment_likes": 0,
"user_id": 1,
"user_avatar": "//cdn.vc.io/uploads/user/2023/06/c7f4bd91c1f55688290b854a504e5ed6.jpg",
"count_child": 0,
"count_child1": 0
}
]
现在我想要删除comment_parent = 50 及与comment_parent=50相关联的子级元素,比如comment_parent=50下的comment_id =58下的子元素comment_id =61,要怎么操作?