I. Understanding of jquery
1. JQuery:
The jquery library can be added to a Web page with a simple line of markup.
2. What is jquery:
jquery is a library of JavaScript functions.
3, the jquery library contains the functions:
HTML element selection
HTML element manipulation
CSS Actions
HTML event functions
JavaScript effects and animations
HTML DOM Traversal and modification
Ajax
Utilities
Ii. Introduction of jquery
1. Add jquery to your page
1): Download the jquery library from jquery.com
2): Load jquery from CDN, such as load jquery from Google
A): Baidu and Sina servers have jquery
Example: Http://libs.baidu.com/jQuery/1.10.2/jquery.min.js
b): Google and Microsoft servers have jquery
Example: Http://ajax.googleapis.com/ajax/libs/jquery/jquery.min.js
2, Version Introduction:
v1.11.1:1.x Support ie6+
v2.1.1:2.x Support ie9+
Three, the basic grammar of Jqeury
1. jquery Syntax:
Base syntax: $ (selector). Action ()
Dollar sign definition jquery
Selector (selector) "Query" and "find" HTML elements
jquery action () performs an operation on an element
For example:
$ (this). Hide ()-hides the current element
$ ("P"). Hide ()-Hides all paragraphs
<! DOCTYPE html>
Introduction to jquery and syntax