Hunter的大杂烩 技术学习笔记

2023-07-06

chrome console一些妙用

Filed under: 技术话题 — hunter @ 11:35 pm

输出某个节点下的纯文本内容,合并了多个子节点:$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

No comments yet.

RSS feed for comments on this post.

Sorry, the comment form is closed at this time.

Powered by WordPress