xpath concat
时间: 2023-10-23 19:35:32 浏览: 106
XPath中的concat函数用于将多个字符串连接在一起。它接受多个参数,并返回这些参数连接后的结果。例如,当我们使用xpath('concat(//li[@data="one"]/text(),//li[@data="three"]/text())')时,将返回"13"。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [XPath相关用法总结](https://blog.csdn.net/Leccen/article/details/106451787)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *3* [XPath入门(含动图解析)](https://blog.csdn.net/lly1122334/article/details/107529140)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文