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.
我想使用 jsoup 从中提取价格:
<div class="resu resu-1"> <ul> <li prix="25">
你试过了吗?
doc.select("li").attr("prix");
尝试 Element doc = document.select(div.resu.resu-1).first();
Element doc = document.select(div.resu.resu-1).first();
String doc1 = doc.attr("prix"); String Price = doc1; System.out.println(Price);