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.