$('李:有(A)')这个查询做了什么....这个代码的输出是什么。我在代码中看到了这个但我不明白什么是实际发生的 [英] $(’Li:Has(A)’) What This Query Do ....What Is The Output Of This Code.I Have Seen This In A Code But I Dont Understand What The Actualy Happen
本文介绍了$('李:有(A)')这个查询做了什么....这个代码的输出是什么。我在代码中看到了这个但我不明白什么是实际发生的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
$('li:has(a)')这个查询做了什么....这个Code的输出是什么。我在代码中看到了这个但是我不明白实际发生了什么
解决方案
这是元素选择器与:has()
选择器的组合。文档非常明确: http://api.jquery.com/has-selector [ ^ ]。
参见:
http://api.jquery.com/element-selector/ [< a href =http://api.jquery.com/element-selector/target =_ blanktitle =New Window> ^ ],
http://api.jquery.com/category/selectors [ ^ ]。
-SA
$(’li:has(a)’) what this query do ....What is the output of this Code.I have seen this in a Code but i dont understand what the actualy happen
解决方案
This is the combination of element selector with:has()
selector. The documentation is crystal clear: http://api.jquery.com/has-selector[^].
See also:
http://api.jquery.com/element-selector/[^],
http://api.jquery.com/category/selectors[^].
—SA
这篇关于$('李:有(A)')这个查询做了什么....这个代码的输出是什么。我在代码中看到了这个但我不明白什么是实际发生的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文