Jquery:
1. What is jquery: A lightweight framework packaged in JavaScript. So, the bottom of jquery is JavaScript. (javascript+ query, which is a library developed by Auxiliary JavaScript.) )
2. The core concept of jquery: Write Less,do More (write less, do more)------"because the ready-made method has been encapsulated. In general, it's more about calling jquery-related methods.
3. jquery is free, open source, and rich in documentation.
4. jquery features (effect): 1. You can get element nodes (Label objects), delete element nodes
2. You can modify the attributes and response events of ELEMENT nodes, even CSS styles
jquery Operations:
The premise of using jquery must be to introduce the corresponding jquery js file. <script type= "Text/javascript" src= "Jquery-1.4.2.min.js" ></script>
1. How to get the element node:
$ ("Related content with nodes");
1. Get the node object by class
$ (". Class name")
2. Get a Node object by ID
$ ("#id名")
3. Get the Node object by tag name
$ ("tag name")
2.JQuery Common methods:
Remove an element under properties: Removeattr (name)
To add an attribute to an element: attr (Key,value)
Get the attribute of an element: attr (name)
To set a style for one or more element nodes: CSS (name,value)
Set CSS styles for an element node: CSS (name,value)-----name style names value of style
Gets the value of a CSS style: CSS (name)-----name style names
Remove an element node: remove ()
Binding an event mechanism to an element: Bind (Name,function)
3. Default boot Load Method: $ (function () {});
jquery Précis-writers