Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

扩展查找包含特定文本的元素的方法 #280

Open
ziyekudeng opened this issue May 9, 2024 · 0 comments
Open

扩展查找包含特定文本的元素的方法 #280

ziyekudeng opened this issue May 9, 2024 · 0 comments

Comments

@ziyekudeng
Copy link

ziyekudeng commented May 9, 2024

例如:使用 JavaScript 的 querySelector 或 querySelectorAll 方法结合 :contains()(非标准,但大多数浏览器支持)
querySelector('span:contains("信息创建")')

这样配合页面渲染完成出现元素使用时会很方便

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant