The front end Road--jquery first lesson

Source: Internet
Author: User

What jquery is.

Why learn jquery first, not from JavaScript.

Haha, this has to ask my teacher. This is a set of learning plan tailored for me ...


Today's learning content:

1. Learn about JavaScript and jquery

What's 2.jQuery?

2. How to introduce the Jquery,jquery writing and location (why write in the body below)

3. What is a CDN

4.jquery things that can be accomplished

5.jquery Basic Syntax:

Basic syntax: $ (selector). Action ()
Dollar sign definition JQuery
Selector (selector) "Query" and "find" HTML elements
JQuery Action () performs the action on the element


"$" is a JQ-specific symbol, "document" HTML throughout the documentation, "ready" after the entire document is prepared, the "function" function
Each function in the script is allowed to appear only once.
Document ready events (important)
$ (document). Ready (function () {

JQuery code ...

});


Concise writing (the same effect as above):
$ (function name (parameter) {

JQuery code ...

});

“;” The meaning is to end a line of logical code and start the next line.
JQ before the document ready event ";" (Why to use this method): To prevent the next JS does not work;


Chrome's Console,js console, dealing with JS problems, can directly output execution results, a useful ~~~~~


With the Var variable, it's easy to simply write JQ syntax

You can remember it by writing it several times.

Document Ready Events
; $ (function () {


})

Today is very sleepy, first go to bed. Tomorrow night to review it, JQ get started must seriously study. Study hard. Study hard.

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.