下面是我必须从中获取数字的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