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.
Elements divs = doc.select("#mp-itn b a");
这里mp-itn是 div 标签的 id。这个b和a是什么?这意味着什么?
mp-itn
我无法理解这一点。请让我知道一些关于 jsoup 的好教程。
它们指的是链接标签<a ...></a>和粗体标签<b></b>。因此,在该示例中,它会a在 id 为 的标签中选择粗体标签内的标签mp-itn。
<a ...></a>
<b></b>
a
我建议您在做任何其他事情之前阅读文档。它在选择器语法页面中对此进行了解释。