jquery Objects and Dom objects
1 JQuery objects are not the same as DOM objects
1.1 jquery is an array object, and the DOM object is a separate DOM element
1.2 how jquery objects and DOM objects are handled
DOM: The DOM object obtained by the DOM model is processed first, and then the text and color are processed through the innerHTML and style properties
JQuery: First, the $p object is processed by the $ method, and then the HTML and CSS are called, and the results are the same as standard JavaScript processing.
2 $p is a class array object that contains information about DOM objects and encapsulates a number of methods of operation
3 jquery objects and D OM objects can manipulate the DOM
4 jquery objects converted into DOM objects
Use the array subscript to read the DOM object in jquery, with the Get () method that comes with jquery
The 5 Get () method provides direct access to the relevant DOM nodes in the jquery object
6 The index of the array is starting from 0, that is, the first element subscript is 0
7 DOM objects converted to jquery objects
Pass the DOM object to the $ (DOM) function, then jquery wraps the DOM object into a new jquery object
8 $ (parameter) is a versatile method that produces different effects by passing different parameters
jquery Objects and Dom objects