xpath取最后一个元素

取xpath最后一个book元素

book[last()]

 

取xpath最后第二个book元素

book[last()-1]

posted @ 2018-09-28 15:19  Operater  阅读(22578)  评论(0编辑  收藏  举报