不包含id属性并且不包含class属性
//tr[not(@id) and not(@class)]
或
//tr[not(@id) or not(@class)]
本文介绍使用XPath选取HTML中不包含ID和Class属性的TR元素的技巧,通过两种不同的XPath表达式实现目标选择,适用于网页解析和数据抓取等场景。
不包含id属性并且不包含class属性
//tr[not(@id) and not(@class)]
或
//tr[not(@id) or not(@class)]

被折叠的 条评论
为什么被折叠?