你好在下面的colde中我正在尝试从img标签中获取第三个跨度的值
这是代码:
<li class="art1">
<div class="infoArt">
<div class="infoArtTitle"><a name="3224502"></a>Chemise ML rose clair coupe droite motif bicolore</div>
<div class="infoArtPrice">
<br>
<span id="ctl00_mainColumnContent_universeCatalog_rptCatalog_ctl00_lblP" class="artP">39</span><br>
<span id="ctl00_mainColumnContent_universeCatalog_rptCatalog_ctl00_lblRetailerPrice" class="artOldP">90</span><br>
<span id="ctl00_mainColumnContent_universeCatalog_rptCatalog_ctl00_lblAvailability" class="artState">out</span>
</div>
</div>
<div class="imgArt">
<div class="infoWrapper" id="n3224502"><!-- id is new new for mdr -->
</div>
<a href="/vp4/_sales/ha/bufi/FR_0XQNB3L041/ikId3224502.aspx">
<img src="/vp4/_sales/ha/products/ev_3224502.jpg" alt="" style="">
</a>
</div>
<div class="btArt">
<a class="btSheetPdt" href="/vp4/_sales/ha/bufi/FR_0XQNB3L041/ikId3224502.aspx" title="fiche produit">
<span>fiche produit</span>
</a>
<span> </span>
</div>
</li>
我想从此查询中获取它以获取输出值:
document.getElementsByTagName('img")[0]
那我不知道我该怎么办,请你帮忙。
谢谢。