kuba8

html中的head的meta元素中的keywords与description标签如下:

<meta name="keywords" content="xxxx" >
<meta name="description" content="xxxx">

xpath获取属性使用@属性名就行了,如

//meta[@name=\'keywords\']/@content[0]
//meta[@name=\'description\']/@content[0]

 

分类:

技术点:

相关文章:

  • 2021-11-16
  • 2021-12-22
  • 2021-09-16
  • 2022-01-01
  • 2021-11-30
  • 2021-11-01
  • 2021-08-07
  • 2021-12-24
猜你喜欢
  • 2021-12-31
  • 2021-06-20
  • 2021-12-22
  • 2021-12-19
  • 2021-04-27
  • 2021-09-07
  • 2021-11-07
相关资源
相似解决方案