jQuery 选择器
1 2 3 4 5 6 7 8 9 10 11 12
| $("*") $(this) $("p") $("p.intro") $("p:first") $("tr:odd") $("p:hidden") $("ul li:eq(3)") $("ul li:lt(3)") $("[href]") $("a[target!='_blank']") $(":button")
|
jQuery 事件
在元素上移动鼠标。
选取单选按钮
点击元素
1 2 3 4 5
| $(document).ready(function)// 将函数绑定到文档的就绪事件(当文档完成加载时) $(selector).click(function)// 触发或将函数绑定到被选元素的点击事件 $(selector).dblclick(function)// 触发或将函数绑定到被选元素的双击事件 $(selector).focus(function)// 触发或将函数绑定到被选元素的获得焦点事件 $(selector).mouseover(function)// 触发或将函数绑定到被选元素的鼠标悬停事件
|
jQuery 效果函数
1 2 3 4 5
| animate() hide() show() fadeIn() fadeOut()
|
jQuery 文档操作方法
1 2 3 4 5 6 7 8 9
| addClass() after() append() appendTo() attr() before() clone() detach() empty()
|
jQuery 遍历方法
1 2 3 4 5 6 7 8 9 10 11 12 13
| .find() .first() .has() .is() .last() .map() .next() .nextAll() .nextUntil() .not() .offsetParent() .parent() .parents()
|
jQuery 教程
jQuery
jQuery
jQuery基础