我如何只选择第一级.block而不选择任何一个孩子?
$('.block:not("Children of this here")') < -
<div class="block"> <!-- this -->
<div class="block"> <!-- not this -->
<div class="block"> <!-- not this -->
</div>
</div>
</div>
<div class="block"> <!-- and this -->
<div class="block"> <!-- not this -->
<div class="block"> <!-- not this -->
</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)