假设我有一些这样的html:
<div class="outer">
<div>
// another div
</div>
<p>First paragraph in outer div</p>
<div>
// another div
</div>
<a href="#">some anchor</a>
<p>Second paragraph in outer div</p>
<div>
<p>Third paragraph in outer div</p>
</div>
<div class="inner">
<p>First paragraph in inner div</p>
<p>Second paragraph in inner div</p>
</div>
</div>
如何获得外部 DIV 中而不是内部 DIV 中的段落?
谢谢