我想只选择表中第一级'td'元素而不是任何嵌套表的单元格.例如:
<table id="Outer">
<tr>
<td> --this one
</td>
<td> --this one
<table>
<tr>
<td></td> -- but not this one or any deeper nested cells
</tr>
</table>
</td>
</tr>
</table>
Run Code Online (Sandbox Code Playgroud)
(在prod代码中是的,我会包括tbody,thead ...)