我正在尝试获取提供的 html(跨度)之间的数据(在本例中为 31)
这是原始代码(来自 chrome 中的检查元素)
<span id="point_total" class="tooltip" oldtitle="Note: If the number is black, your points are actually a little bit negative. Don't worry, this just means you need to start subbing again." aria-describedby="ui-tooltip-0">31</span>
我有一个包含页面源的富文本框,这里是相同的代码,但在富文本框的第 51 行:
<DIV id=point_display>You have<BR><SPAN id=point_total class=tooltip jQuery16207621750175125325="23" oldtitle="Note: If the number is black, your points are actually a little bit negative. Don't worry, this just means you need to start subbing again.">17</SPAN><BR>Points </DIV><IMG style="FLOAT: right" title="Gain subscribers" border=0 alt="When people subscribe to you, you lose a point" src="http://static.subxcess.com/images/page/decoration/remove-1-point.png"> </DIV>
我该怎么做呢?我已经尝试了几种方法,但它们似乎都不适合我。
我正在尝试从此页面检索点值:http: //www.subxcess.com/sub4sub.php 该数字会根据您的订阅者而变化。