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 nextLinks = doc.select(a[href*=https] || a[href*=http]);
我需要连接 HTTP 和 HTTPS 站点。我怎样才能做到这一点?
为此使用,逗号分隔符
,
以下应该做
Elements nextLinks = doc.select("a[href*=https] , a[href*=http]");
看看这个:选择器语法和这个:使用选择器语法来查找元素