Home > Web Front-end > JS Tutorial > body text

Example analysis of xpath

一个新手
Release: 2017-09-25 09:47:48
Original
1612 people have browsed it

.//: Indicates the current page

*: Indicates the selector

[@id=' ']: Selects the id as..

/dlL: The first dl under the superior id

/dd[5]: The fifth dd under the superior dl

/p[1]: The superior The first p

/span[1]: The first span

under the superior level can be added with text() at the end to get the value of the selected tag

The above is the detailed content of Example analysis of xpath. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!