Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用这段代码解析 html-page < span class = bld >1.2456 RON </ span> 我想在 Android 中用 SOUP 获取文本“1.2456 RON”。我会做什么?请告诉我
我认为这就是你的做法:
String html = "< span class = bld >1.2456 RON < / span >"; Elements e = new Jsoup(html).select(".bld"); System.out.println(e.get(0).text().toString());