Although I have read many things today, it is quite simple.
I am too lazy to write a comparison example.
1. jquery statement execution sequence:
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <HTML xmlns = "http://www.w3.org/1999/xhtml">
2. node text input:
Compared with JS's simple innerhtml input jquery, jquery provides more input methods (including Text Location Selection)
It eliminates the hassle of repeatedly referencing multiple variables for formatting in Js ....
The following describes functions:
1.((selector).html (content) changes the (internal) HTML of the selected Element
2. $ (selector). append (content) Append content to the (internal) HTML of the selected Element
3. $ (selector). prepend (content) to the (internal) HTML "preset" (prepend) content of the selected Element
4. $ (selector). After (content) add HTML after the selected Element
5. $ (selector). Before (content) add HTML before the selected Element
The following is the sample code:
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <HTML xmlns = "http://www.w3.org/1999/xhtml">
3. jquery CSS operations:
1. $ (selector). Height (value) sets the height of the Matching Element
2. $ (selector). Width (value) sets the width of the matching element.
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <HTML xmlns = "http://www.w3.org/1999/xhtml">
3.((selector).css (name, value) sets the style attribute value for the Matching Element
4.$(selector).css ({properties}) sets multiple style attributes for the Matching Element
5.((selector).css (name) to obtain the style attribute value of the First Matching Element
<! Doctype HTML public "-// W3C // dtd xhtml 1.0 transitional // en" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <HTML xmlns = "http://www.w3.org/1999/xhtml">
After reading jquery for 3 days
Jquery is not difficult.
The impression of opposing Javascript is greatly improved
Previously, I always thought that JS is okay, but it only handles page design.
I think wow. JS is too strong to be tested.
Let's see if you want to learn JS well ....
Not much nonsense.