2015-09-05 170 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# –