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

请求支持JQuery遍历API #1105

Open
w3l7 opened this issue Dec 25, 2022 · 0 comments
Open

请求支持JQuery遍历API #1105

w3l7 opened this issue Dec 25, 2022 · 0 comments

Comments

@w3l7
Copy link

w3l7 commented Dec 25, 2022

CSS选择器有局限,举个例子,CSS在纵横方向只能向后选择,也就是说只能选择子元素和后继元素,不能选择父元素和前驱元素。而JQueryAPI提供了解决方案,如$("css选择器").parent()用于获取指定元素的父元素,我还能基于此选择器获取父元素的后继元素,如$("css选择器").parent().next()。相关API参考https://www.w3school.com.cn/jquery/jquery_ref_traversing.asp。

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