日期:2014-05-16 浏览次数:20368 次
<div class="a">
<div style="display: block; ">
<div class="title">
<span class="num">2500</span>
</div>
</div>
</div>
<div style="display: none; ">
<div class="title">
<span class="num">2700</span>
</div>
</div>
$('div.a>div:visible .num').text()
//或者
$('div.a>[style*="block"] .num').text()
<div class="a">
<div style="display: block; ">
<div class="title">
<span class="num show">2500</span>
</div>
</div>
</div>
<div style="display: none; ">
<div class="title">
<span class="num hide">2700</span>
</div>
</div>