下面是我必須從中獲取數字的HTML,但不確定如何只拉取數字,而不是拉取最後一個嵌套Span文本。從A鏈接的中間跨度中提取innerText
<li class="off" id="defense1">
<div class="item_box defense401">
<div class="buildingimg">
<a title="" class="detail_button tooltip js_hideTipOnMobile slideIn" id="details401" href="javascript:void(0);" ref="401">
<span class="ecke">
<span class="level">
<span class="textlabel">
Rocket Launcher
</span>
20.000
</span>
</span>
</a>
</div>
</div>
</li>
如果我使用下面的VBA代碼,我從我想要的跨度和內部跨度中獲得文本。我如何才能拔出#號?
Dim IE as InternetExplorer
Set IE = new InternetExplorer
IE.document.getElementById("details401").innerText
我需要VBA代碼來過濾中間Span的innerText。
對不起,但說,我需要VBA代碼,可以拉文。 – Rdster