Jquery常用的选择器有哪些
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 、:hidden9、表单过滤器选择器:enabled 、:disabled 、:checked 、:selected
高级软件工程师的电话面试的英文自我介绍要怎么写
I have 4 years asp.net development experience, master C#, SQL, Jquery, LinQ development technology. Involvement in ERP, OA, B2C e-commerce site and entertainment website design, development, has the rich project, product development experience. I am good at study, innovation, studies independently ability, IQ130 +, the love of programming.
怎么点击一个按钮让隐藏的div显示
示例html最简单的方法:toggle() 的作用就是当对象是显示的就隐藏,当是隐藏的则显示。------如果你除了显示和隐藏之外还需要同时实现其他功能的话,可以这样:这里通过自定义一个 class : show 来判断 div 是显示或隐藏hasClass() 是否存在某个classhide() 隐藏对象show() 显示对象removeClass() 移除一个classaddClass() 添加一个class除此,还可以通过jquery设置这个 div 的 css : display:none/block 来实现隐藏/显示
还没有评论,来说两句吧...