5th chapter: Manipulating the DOM
- HTML attributes and Dom properties; attr () and prop ()
- Gets the value of the form control: Val ()
- The generalization of DOM operation methods:
(1) To create a new element in HTML, use the $ () function.
(2) To insert a new element into each matching element, use:
?. Append ()
?. AppendTo ()
?. prepend ()
?. Prependto ()
104 5th Operation DOM
(3) To insert a new element in a position adjacent to each matched element, using:
?. After ()
?. InsertAfter ()
?. Before ()
?. insertbefore ()
(4) To insert a new element outside each matching element, use:
?. Wrap ()
?. Wrapall ()
?. Wrapinner ()
(5) to replace each matching element with a new element or text, use:
?. HTML ()
?. Text ()
?. ReplaceAll ()
?. replacewith ()
(6) To remove elements from each of the matched elements, use:
?. Empty ()
(7) to remove each matched element and its descendant elements from the document without actually deleting them, using:
?. Remove ()
?. Detach ()
6th: sending data via Ajax
- How do I choose an interactive data format? Html/javascript/json/xml
- Register callback functions for various AJAX-related events, for example: Ajaxstart ()/ajaxstop ()
- Several solutions to bypass the "homologous strategy"
- $.ajax ()
7th chapter: Using plugins
- JQuery UI Plugin Library
- JQuery Mobile Plugin Library
8th chapter: Development of plug-ins
- Develop a jquery plugin
- Creating a plug-in using the jquery UI part factory
9th chapter: Advanced Selectors and traversal
- Custom Selectors
- DOM Element Stack
10th Chapter: Advanced Event Processing
- Event delegate
- Ways to implement infinite scrolling
- Custom events
- Throttling events
- Extended Events
11th Chapter: Advanced Effects
- Observation and control animation
- Lingering objects
12th chapter: Advanced DOM Operations
- Customizing data properties Using HTML5
- jquery Hooks
13th Chapter: Advanced Ajax
- JQXHR Object
- Extending AJAX Capabilities
Appendix A
Summary: "Basic jquery Tutorial" 5-end