'/'
- root (absolute path)
- example: '/html'
'//'
- everywhere
- example: '//p'
'.//'
- relative path
- example: './/p'
'*'
- every node
- example: '//*'
'@attr'
- attribute
- example: '//@title', '//img/@src', '//a/@href'
'[1]'
- index, from 1 to n (not 0)
- example: '//p[12]'
'[@attr="str"]'
- condition
- example: '//img[@src="phone.jpg"]'
'text()'
- text of tag
- example: '//p/text()'
'Web' 카테고리의 다른 글
[Web] React vs Vue (Javascript Library/Framework) (0) | 2018.03.31 |
---|---|
[Web] nginx multi web server config (0) | 2018.03.30 |
[Web] javascript function alias (getElementById) (0) | 2018.03.29 |
[Web] react form onChange (0) | 2018.03.29 |
[Web] form tag submit disable / onSubmit (0) | 2018.03.29 |
WRITTEN BY
- hojongs
블로그 옮겼습니다 https://hojongs.github.io/