输出某个节点下的纯文本内容,合并了多个子节点:$x(“string(//*[@id=’content_views’]/p[6])”)
或者
$x(“/html/body/div[1]/div[1]/div[2]/article/div[1]/div[5]/div[1]/div/div[3]/div[1]/div[2]/pre/code”)[0].textContent
输出某个节点下的纯文本内容,合并了多个子节点:$x(“string(//*[@id=’content_views’]/p[6])”)
或者
$x(“/html/body/div[1]/div[1]/div[2]/article/div[1]/div[5]/div[1]/div/div[3]/div[1]/div[2]/pre/code”)[0].textContent
No comments yet.
RSS feed for comments on this post.
Sorry, the comment form is closed at this time.
Powered by WordPress