jquery is currently one of the most popular javascript/ajax libraries, which can achieve the most functions with the least code. This book comprehensively introduces jquery knowledge, showing how to traverse html documents, handle events, perform animations, and add ajax to web pages. The book closely focuses on the purpose of "using practical examples to explain every new concept", and vividly describes how jquery interacts with other tools and frameworks and how to generate jquery plug-ins.
This book is suitable for web developers of all levels.
Contents: Chapter 1 Introduction to jQuery
1.1 Why jQuery
1.2 Unobtrusive JavaScript
1.3 Basic principles of jQuery
1.3.1 jQuery wrapper
1.3.2 Utility functions
1.3.3 Document ready handler
1.3.4 Create DOM elements
1.3.5 Extend jQuery
1.3.6 Using jQuery and other libraries
1.4 Summary
Chapter 2 Creating Element Packaging Set
2.1 Select the element to be operated
2.1.1 Using basic CSS selectors
2.1.2 Using child selectors, container selectors and attribute selectors
2.1.3 Select by location
2.1.4 Using custom jQuery selectors
2.2 Generate new HTML
2.3 Managing packaging element collections
2.3.1 Determine the size of the packaging set
. 2.3.2 Get elements from the packaging set
2.3.3 Filter element packaging set
2.3.4 Use relationships to obtain packaging sets
2.3.5 There are more ways to use packaged sets
2.3.6 Managing jQuery chains
2.4 Summary
Chapter 3 Use jQuery to make the page come alive
3.1 Manipulating element attributes and characteristics
3.1.1 Manipulating element attributes
3.1.2 Get characteristic value
3.1.3 Set property value
3.1.4 Delete features
3.1.5 The joy brought by features
3.2 Modify element style
3.2.1 Adding and deleting class names
3.2.2 Get and set style
3.2.3 More useful commands related to styles
3.3 Set element content
3.3.1 Replace HTML or text content
3.3.2 Moving and copying elements
3.3.3 Wrapping elements
3.3.4 Delete elements
3.3.5 Clone elements
3.4 Processing form element values
3.5 Summary
Chapter 4 Event
4.1 Browser event model
4.1.1 DOM level 0 event model
4.1.2 DOM Level 2 Event Model
4.1.3 IE event model
4.2 jQuery event model
4.2.1 Use jQuery to bind event handlers
4.2.2 Delete event handler
4.2.3 Event instance
4.2.4 Impact event propagation
4.2.5 Trigger event handler
4.2.6 Other event-related commands
4.3 Making events (and more) work
4.4 Summary
Chapter 5 Decorate the page with animations and effects
5.1 Show and hide elements
5.1.1 Implementing a collapsible list
5.1.2 Switch the display state of elements
5.2 Animate functions to show and hide
5.2.1 Make elements gradually show and hide
5.2.2 Fade elements in and out
5.2.3 Making elements slide up and down
5.2.4 Stop animation
5.3 Create custom animation
5.3.1 A customized zoom animation
5.3.2 A custom falling animation
5.3.3 A custom dissipation animation
5.4 Summary
Chapter 6 jQuery Utility Functions
6.1 Using jQuery flags
6.1.1 Detecting user agents
6.1.2 Determine the box model
6.1.3 Detecting the correct floating style to use
6.2 Using jQuery and other libraries
6.3 Manipulating JavaScript objects and collections
6.3.1 Trimming string
6.3.2 Iterating over properties and collections
6.3.3 Filter array
6.3.4 Convert arrays
6.3.5 Find more fun with JavaScript arrays
6.3.6 Extended objects
6.4 Dynamic loading script
6.5 Summary
Chapter 7 Extending jQuery with custom plug-ins
7.1 Why extend
7.2 Guidelines for creating jQuery plug-ins
7.2.1 Naming files and functions
7.2.2 Be careful$
7.2.3 Simplify complex parameter lists
7.3 Writing custom utility functions
7.3.1 Creating utility functions for manipulating data
7.3.2 Writing date formatter
7.4 Add new wrapper method
7.4.1 Applying multiple operations in wrapper methods
7.4.2 State retained within wrapper methods
7.5 Summary
Chapter 8 Using Ajax to Talk to the Server
8.1 Review Ajax
8.1.1 Create an XHR instance
8.1.2 Initiate a request
8.1.3 Tracking progress
8.1.4 Get response
8.2 Load content onto elements
8.2.1 Loading content using jQuery
8.2.2 Load dynamic inventory data
8.3 Initiate GET and POST requests
8.3.1 Use jQuery to obtain data
8.3.2 Get JSON data
8.3.3 Initiating a POST request
8.4 Full control of Ajax requests
8.4.1 Making an Ajax request with all trimming
8.4.2 Set the default value of the request
8.4.3 Global functions
8.5 Integrate everything
8.5.1 Implement tooltip behavior
8.5.2 Using the term prompter
8.5.3 Room for improvement
8.6 Summary
Chapter 9 Excellent, powerful and practical plug-ins
9.1 Form plug-in
9.1.1 Get the value of form control
9.1.2 Clear and reset form controls
9.1.3 Submitting a form via Ajax
9.1.4 Upload files
9.2 Size plugin
9.2.1 Extended methods for width and height
9.2.2 Get scroll size
9.2.3 About offset and position
9.3 Real-time query plug-in
9.3.1 Establish active event handler
9.3.2 Define match and mismatch listeners
9.3.3 Force Live Query evaluation
9.3.4 Expiring the Live Query listener
9.4 UI plug-in
9.4.1 Mouse interaction
9.4.2 UI widgets and visualizations
9.5 Summary
9.6 Epilogue
Statement:
All resources on this website are contributed and published by netizens, or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this website are for learning and reference only. Please do not use them for commercial purposes, otherwise you will be responsible for all consequences incurred! If there is any infringement, please contact us to delete and remove it. Contact information: admin@php.cn