1、onload方法在DOM树创建完成和页面所有元素被载入之后才会运行
JQuery风格的
windows.onload(function(){
/*your coed goes here*/
});
$(function() {
$("table tr:nth-child(even)").addClass("even");
});
2、JQuery选择器的使用
语法:$(”Selector”),相关站点http://docs.jquery.com/Selectors
3、用JQuery创建新的dom元素
$("<p>Hi there!</p>")
4、JQuery选择器使用
API/1.2/Selectors
From jQuery JavaScript Library
Basics:
Hierarchy:
Name
Type
ancestor descendant |
Returns: Array<Element(s)> |
Matches all descendant elements specified by "descendant" of elements specified by "ancestor". |
parent > child |
Returns: Array<Element(s)> |
Matches all child elements specified by "child" of elements specified by "parent". |
prev + next |
Returns: Array<Element(s)> |
Matches all next elements specified by "next" that are next to elements specified by "prev". |
prev ~ siblings |
Returns: Array<Element(s)> |
Matches all sibling elements after the "prev" element that match the filtering "siblings" selector. |
Basic Filters:
Content Filters:
Visibility Filters:
Attribute Filters:
Child Filters:
Forms:
Form Filters:
分享到:
相关推荐
JQuery in Action JQuery实战 JavaScript 学习笔记
Jquery学习笔记 Jquery学习笔记 Jquery学习笔记
jQuery in Action(3rd) 英文mobi 第3版 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
jQuery 语法学习笔记jQuery 语法学习笔记jQuery 语法学习笔记jQuery 语法学习笔记jQuery 语法学习笔记jQuery 语法学习笔记jQuery 语法学习笔记jQuery 语法学习笔记jQuery 语法学习笔记jQuery 语法学习笔记jQuery ...
jQuery in Action jQuery in Action jQuery in Action
jQuery实战(jQuery in Action) 中文版 PDF 人民邮电出版社 Part 4 of 6
jQuery in Action, Third Edition, is a fast-paced guide to jQuery, focused on the tasks you'll face in nearly any web dev project. In it, you'll learn how to traverse the DOM, handle events, perform ...
Jquery in action 实战中文版
jQuery in Action is a fast-paced introduction and guide. It shows you how to traverse HTML documents, handle events, perform animations, and add Ajax to your web pages. The book's unique “lab pages”...
jQuery in Action html版,可以在里面通过例子进行锻炼,是一个比较好的入门级资料,包含也比较完整
jQuery in Action Sourcecode
JQuery学习笔记 JQuery学习笔记 JQuery学习笔记 JQuery学习笔记 JQuery学习笔记
JQuery笔记JQuery笔记JQuery笔记JQuery笔记JQuery笔记JQuery笔记JQuery笔记JQuery笔记JQuery笔记JQuery笔记JQuery笔记JQuery笔记JQuery笔记JQuery笔记JQuery笔记
jQuery实战(jQuery in Action) 中文版 PDF 人民邮电出版社 Part 1 of 6
jQuery 实战(jQuery in action)(2008版)的配套源代码。Manning网站的源代码在中国无法直接下载,所以在这里提供下载,方便大家边看书,边实践。实践才是王道!
《jQuery in Action》 全书随书源码实例,学习jquery前端编程绝对是有用的代码,同时jQuery in Action对学习jquery来说,也是很值得一看的,随书代码中包括了全书中每个章节所讲的实例,你可亲自操作测试一下这些...
jquery的学习总结笔记 对选择器和常用方法进行总结 有实例
jQuery+AJAX学习笔记
jquery 学习笔记jquery 学习笔记jquery 学习笔记jquery 学习笔记
JQuery学习笔记.txtJQuery学习笔记.txtJQuery学习笔记.txt