Recently quiet heart to read only profound experience: reading is really important, only reading can let you have the mind to think.
Revisit the basics of jquery tutorial
First, the incident
Master the common events and understand the event handling mechanism of jquery.
Note that you should be aware of:
1, event propagation, including event capture and event bubbling, and how to eliminate the impact of event propagation, as well as the application of event propagation.
The main methods are: A, according to the event target to determine the operation, that is, Event.target B, block event propagation, that is, Event.stoppapogation C, understand the difference between the default event and jquery events and the blocking default event, that is, Preventdefault (). D, event delegate, although jquery has an implicit iterative mechanism, but consumes memory, you can select the event delegate at the appropriate time. Summary: Flexibility should be the event object can do a lot of things.
2. Style and animation
When animating elements, it is important to be able to control their order, and the second parameter of each effect class can pass in a callback function that executes after the current animation is executed, but be aware of the change in this environment
Summarize:
A, the effect on a group of elements:
Occurs at the same time when applied in a single animate () method with multiple attributes, and when applied as concatenating, is sequential (queued effect)-unless the queue is set to False22.
b, effects on multiple groups of elements
Occurs at the same time by default, and occurs sequentially when applied in one of the effects or in a callback function that uses the. Queue () method.
jquery Basic Tutorial Learn note one