xpath取最后一个元素

取xpath最后一个book元素

book[last()]

取xpath最后第二个book元素

book[last()-1]

猜你喜欢

转载自www.cnblogs.com/myiuni/p/10735490.html