etc. There could be any number of parents or any number of childs per parent (even 0). There will never be a child of a child. What I need to do is an on click "if child, do this, if parent, do this".
一些您可能无法访问的结果已被隐去。
显示无法访问的结果一些您可能无法访问的结果已被隐去。
显示无法访问的结果