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]
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]
本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。