面试题:JQuery有几种选择器?
2014-03-19 11:45
239 查看
很多种,大概归纳为9种。 (1)基本 #id element .class * selector1,selector2,selectorN (2)层次选择器: ancestor descendant parent > child prev + next prev ~ siblings (3)基本过滤器选择器 :first :last :not :even :odd :eq :gt :lt :header :animated (4)内容过滤器选择器 :contains :empty :has :parent (5)可见性过滤器选择器 :hidden :visible (6)属性过滤器选择器 [attribute] [attribute=value] [attribute!=value] [attribute^=value] [attribute$=value] [attribute*=value] [attrSel1][attrSel2][attrSelN] (7)子元素过滤器选择器 :nth-child :first-child :last-child :only-child (8)表单选择器 :input :text :password :radio :checkbox :submit :image :reset :button :file :hidden (9)表单过滤器选择器 :enabled :disabled :checked :selected
相关文章推荐
- 面试题:JQuery有几种选择器?
- JQuery里面的几种选择器 查找满足条件的元素$("#控件ID")
- jquery学习之几种过滤选择器
- Jquery的过滤选择器分为哪几种?
- Jquery的过滤选择器分为哪几种?
- JQuery里面的几种选择器——查找满足条件的元素$("#控件ID")
- JQuery选择器大全 前端面试送命题:面试题篇 对IOC和DI的通俗理解 c#中关于协变性和逆变性(又叫抗变)帮助理解
- JQuery里面的几种选择器 查找满足条件的元素$("#控件ID")
- JQuery几种选择器
- Jquery的选择器面试题
- jQuery中选择器有哪几种(哪几种最常见)
- jQuery选择器总结
- jQuery_表单元素过滤选择器
- JQuery选择器
- jQuery面试题及答案
- jQuery教程08-属性筛选选择器
- jquery选择器学习
- jQuery教程06-基本筛选选择器
- jQuery高级选择器
- JQuery选择器操作