1. Some methods of the core of jqueryEach (callback) ' is like a loop$ ("Element"). Length; ' The number of elements, is a property$ ("Element"). Size (); ' is also the number of elements, but parentheses are a method$ ("Element"). get (); ' A
1. First talk about the concept of jqueryjquery was first created by a America called John Resig, and then a lot of JS Gurus joined the team. In fact, jquery is a JavaScript class library, this class library collection of many functional methods,
JQuery's filter selector mainly uses specific filter rules to filter out the required DOM elements. The filter rules have the same syntax as the pseudo-class selector in CSS, that is, the selector starts with a colon. Based on different filtering
This article mainly introduces how Jquery obtains the setting and removal of objects and attributes of a specified tag. For more information about JQuery, see section 1, JQuery was first created by John Resig from America, and many JS experts joined
1.Some methods of the core of jquery$ ("Element"). Length; ' The number of elements is a property $ ("element"). Size (); ' is also the number of elements, but parentheses are a method $ ("element"). get (); ' A collection of elements in the page,
1. Some methods of the core of jquery$ ("Element"). Length; ' The number of elements, is a property$ ("Element"). Size (); ' is also the number of elements, but parentheses are a method$ ("Element"). get (); ' A collection of elements in a page,
1. Let's talk about the concept of JQuery. JQuery was first created by John Resig, an American. Later, many JS experts joined the team. In fact, JQuery is a JavaScript class library. This class library integrates many functional methods. You can use
(1) Basic Object acquisition$ ("*")Get all objects$ ("# Element ")The object whose id is element is equivalent to document. getElementById ("element ");$ (". Abc ")Get the object whose class is abc$ ("Div ")Obtain all div elements in html$ ("# A,. B,
1. Jquery introduction Jquery is another excellent Javascript framework after prototype. It is a lightweight js library that is compatible with CSS3 and various browsers. JQuery allows you to easily process HTMLdocuments, events, and animation
Learning jquery in the process found a blog to the main points of jquery is very good, excerpt its essence for learning. Thank you: http://blog.csdn.net/wph_1129/article/details/59932901,jquery Object AccessEach (callback) is similar to a foreach
1. First talk about the concept of jqueryjquery was first created by a America called John Resig, and then a lot of JS Gurus joined the team. In fact, jquery is a JavaScript class library, this class library collection of many functional methods,
(1) Basic object acquisition
$("*")
Get all Objects
$ ("#element")
Obtaining an object with an ID of element is equivalent to document.getElementById ("element");
$ (". ABC")
To get an object with class ABC
$ ("div")
Get all the DIV elements in
1. Some approaches to the core of jquery
Each (callback) ' is like a loop
$ ("Element"). Length; ' The number of elements, is a property
$ ("Element"). Size (); ' is also the number of elements, but with parentheses is a method
$ ("Element"). get ();
Some of JQuery's core methods $ (& quot; Element & quot ;). length; & amp; lsquo; number of elements, which is an attribute $ (& quot; Element & quot ;). size (); & amp; rsquo; is also the number of elements, but brackets are a method $ (& quot;
Some methods of the core of jqueryEach (callback) ' is like a loop$ ("Element"). Length; ' The number of elements, is a property$ ("Element"). Size (); ' is also the number of elements, but parentheses are a method$ ("Element"). get (); ' A
1. Jquery introduction Jquery is another excellent Javascript framework after prototype. It is a lightweight js library that is compatible with CSS3 and various browsers. JQuery allows you to easily process HTML documents, events, and animation
Jquery core methods
$ ("Element"). length; 'number of elements, which is an attribute$ ("Element"). Size (); 'is also the number of elements, but parentheses are a method.$ ("Element"). Get (); 'a collection of elements on the page, stored in Arrays$
1, Some core methods of jquery $ ("Element" ). Length; 'number of elements, which is an attribute $ ( "Element" ). Size (); 'is also the number of elements, but parentheses are a method $ ( "Element" ). Get (); 'a set of elements in the page,
1) Basic Object acquisition$ ("*")Get all Objects
The code is as follows
Copy Code
Equivalent to document.getElementById ("World"). Innerhtml= "Hello world!";$ ("#world"). HTML ("Hello world!");
For example,
Use the jquery selector to select page elements to generate the jquery object, which is fairly simple: $ (selector). It is worth noting, however, that this is the generation of jquery objects, not DOM objects, so $ (selector). innerHTML to get the
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.