jquery Précis-writers

Source: Internet
Author: User

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

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.