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选择器语法非常简单,可以通过 id、类或属性来精确定位任何元素。
但我还没有找到(还)正确的语法:
“查找所有没有<a>类名的元素 (任何类名)”
<a>
是否有特殊的 Jsoup 语法?还是我必须找到所有<a>元素并检查自己是否有类名?
这个 CSS 选择器选择没有属性的<a>元素:class
class
a:not([class])