Jquery Learning (3)

Source: Internet
Author: User

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.