xpath路径前可用方法测试

mac2022-06-30  22

$x("string-length(//h3[@class='t'])") 8 $x("string(//h3[@class='t'])") "XPath 教程" $x("round(//h3[@class='t'])") NaN $x("number(//h3[@class='t'])") NaN $x("not(//h3[@class='t'])") false $x("normalize-space(//h3[@class='t'])") "XPath 教程" $x("namespace-uri(//h3[@class='t'])") "http://www.w3.org/1999/xhtml" $x("name(//h3[@class='t'])") "h3" $x("name(//local-name[@class='t'])") "" $x("local-name(//h3[@class='t'])") "h3" $x("lang(//h3[@class='t'])") false $x("id(//h3[@class='t'])") [] $x("floor(//h3[@class='t'])") NaN $x("count(//h3[@class='t'])") 9 $x("ceiling(//h3[@class='t'])") NaN $x("boolean(//h3[@class='t'])") true

转载于:https://www.cnblogs.com/c-x-a/p/9947747.html

相关资源:IE浏览器Xpath工具.zip
最新回复(0)