看板 java 關於我們 聯絡資訊
我目前想解析 http://lol.garena.tw/champions/champion-detail.php?ctitle=Ahri 網頁裡面的片段↓ <span class="center_text01_subject_i">九尾妖狐 <span class="center_text01_champion_name">阿璃</span></span> 想取出 九尾妖狐的字串 我有上去看Jsoup 官方文件 但是還不不太懂 我有試著寫 String infov3 = info.select("span.classcenter_text01_subject_i").text(); 結果跑出來 九尾妖狐 阿璃 請問各位大大要怎麼寫? X -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.114.39.102
IamTD:把裡面那層span的text replace掉 04/10 17:23
PsMonkey:好歹也講一下 info 是什麼 class 吧? 04/11 11:35
PsMonkey:這樣外人很難幫你 04/11 11:36