We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CSS选择器有局限,举个例子,CSS在纵横方向只能向后选择,也就是说只能选择子元素和后继元素,不能选择父元素和前驱元素。而JQueryAPI提供了解决方案,如$("css选择器").parent()用于获取指定元素的父元素,我还能基于此选择器获取父元素的后继元素,如$("css选择器").parent().next()。相关API参考https://www.w3school.com.cn/jquery/jquery_ref_traversing.asp。
$("css选择器").parent()
$("css选择器").parent().next()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
CSS选择器有局限,举个例子,CSS在纵横方向只能向后选择,也就是说只能选择子元素和后继元素,不能选择父元素和前驱元素。而JQueryAPI提供了解决方案,如
$("css选择器").parent()
用于获取指定元素的父元素,我还能基于此选择器获取父元素的后继元素,如$("css选择器").parent().next()
。相关API参考https://www.w3school.com.cn/jquery/jquery_ref_traversing.asp。The text was updated successfully, but these errors were encountered: