JQuery is simply an excellent javescript class library. JQuery allows developers to easily process DOM, events, animation effects, and provide Ajax interaction for websites. JQuery strives to change the mindset style of web developers when creating rich pages, that is, the behavior and structure proposed by jQuery are separated.
JQuery focuses on getting and operating elements from html pages, describing element groups through the features or positions of elements in documents, and learning about CSS friends, the selector is very useful.
JQuery uses the excellent selector function in CSS.
$ ("Tr: nth-child (1)"); this selector selects the first row of each table.
$ ("A [href $ = pdf]"); select a link to the pdf file.
$ ("Body> div: has (a)"); this selector selects the div that contains links as the direct subnode.
From this point of view, if you have an understanding of the CSS selector, this function of jQuery is easier to understand and master.
The $ () function can be regarded as the alias of the jQuery () function, and $ () can be replaced with jQuery ().
JQuery provides extensions and does not support independent functions. In my understanding, only functions with specific functions can be written on the basis of jQuery, but not in the jQuery class library.
JQuery can be compatible with other excellent javascript libraries.
Author blog: http://www.cnblogs.com/yangzhijia/