My JQuery

来源:互联网 发布:八皇后问题算法复杂性 编辑:程序博客网 时间:2024/05/16 14:57

$(".test :hidden")  选择class为test的元素当中的隐藏子元素  (中间有空格)

$(".test:hidden")   选择隐藏的的class为test的元素

 

jQuery 常用函数总结:

html() text() val() attr() remove() click() bind() unbind()  blur() focus() css() children() next() prev() sibling()

wrap() show() hide() is()     hover()//mouseover mouseout      toggle() trigger()           

event.stopPropagation   //阻止事件冒泡

event.preventDefault()  //阻止默认行为(eg. 表单提交) = return false;

 

 

原创粉丝点击