2015-09-05 172 views
0

我试图让HTML数据:获取HTML标签

我有一个网页的HTML代码:

<a class="hoverunderline commentthread_author_link" href="http://steamcommunity.com/id/KryptonGas" data-miniprofile="83170738"> 
</a> 

,我需要得到data-miniprofile="83170738"部分,但如何......?

URL和ID每次都会更改。

对不起,我正在使用C#

Jonathan。

回答

0

您可以使用jQuery做(未经测试的代码):

var profile = $(".hoverunderline .commentthread_author_link").data("miniprofile") 
+0

对不起,我说,我工作在C# –