使用示例:
<table id="tableId"> <tr data-tt-id="1"> <td>Parent</td> </tr> <tr data-tt-id="2" data-tt-parent-id="1"> <td>Child</td> </tr> </table>
data-tt-id为2的tr 通过data-tt-parent-id指向1节点,意思就是第二个tr是第一个tr的子节点;