These jquery resources will set you on the path towards mastering jquery. Written articles
Getting started with jquery-this is the official jquery Getting Started Guide.
Jquery for JavaScript programmers-Simon willison (creator of Django) gives you an introduction
I wrote an article yesterday to learn javascript (1) Through jQuery source code. There is a method for defining Object C in it. I didn't pay too much attention to the technical details in the early days. Later, I checked the information and found that there were many clever places in it. Today I will share with you the clever 1: Functions
Functions are a rare talent in javascript code.
♥It can return code segments and encapsulate relatively independe
This is a simple POST Request function to replace complex $. ajax: You can call the callback function when the request is successful. If you are interested, refer to the following. I hope jQuery is a popular js library, it can use simple code to make the desired results, as the official website says "write less, do more ". To a certain extent, Jquery has rewritten the previous JavaScript writing method. I u
[Jquery] jquery achieves the wishing wall effect, which can be dragged or dragged by jquery.
I have recently worked out a project and found that there is a wishing wall. I will share it with you today.
First, we will briefly introduce the following functions:
Displays the background image or background color randomly.
Random location
You can drag and drop to
7 cool JQuery animations and practical JQuery applications, 7 practical jquery animations
1. JQuery buffer loading image plug-in lazyload. js usage
Azyload. js is a JQuery-based plug-in that can be used to buffer and load images. If a webpage is long and has many images, it
The jquery library file is a little large and the jquery method is replaced by pure js, And the jquery library js is replaced
Jquery library files are a little large. In some cases, you need to minimize the size of the loaded files (file size) and use pure js to compile the results.
$('#layer')document.getElementById('
This article mainly introduces jquery plug-in. nicescroll implements the drag-and-drop method for images without a scroll bar. this example analyzes jquery. the nicescroll Plug-In implements the image drag and drop effect. if you need it, refer to the following example to describe jquery plug-in. nicescroll implements the drag-and-drop method for images without a
[Jquery] jquery. cookie. js User Guide, jquery. cookie. js
I have previously written an introduction to native js cookies and finally encapsulated them into cookie. js details. Click the portal.
Jquery. cookie. js is a lightweight cookie plug-in that can read, write, and delete cookies. This document describes the usag
When making a form submission, if you are still submitting with form, the user experience is poor, so you generally use AJAX submissions.Where you need to get the value of each form INPUT element and get it like a text box these are okay to say, jquery provides the. Val () method, which is easy to get, but getting the check box and radio button values is cumbersome.There's nothing to do today. Encapsulates a function, the subsequent acquisition of the
[Learning jQuery from 0 to 1] using each () and $. each () in jQuery, jquery. each Introduction:
Recently, I encountered a problem: how to simulate the break and continue operations in the for loop in the each () function. So I checked jQuery's document on this function and summarized it.
The Demo code is as follows:
The result is to traverse the entire li Tag E
Jquery. tmpl, jquery. tmpl, and jquery. tmpl
Dynamic Request data to update pages is now a very common method, such as paging dynamic loading of blog comments, rolling loading of Weibo, and loading of scheduled requests.
In these cases, the data returned by the dynamic request is generally not formatted as JSON or XML. In short, data is spelled out on the server
[Basic learning of jQuery] 11 simple jQuery performance optimization and jquery Performance
Performance Optimization
Proper Selector
$ ("# Id") directly calls the underlying method, so this is the fastest. If you cannot find it directly, you can use the find method to continue searching.
$ ("P") the tag selector also directly calls the underlying metho
conveniently without being judged every time. Here, you can use $ (). rightClick (); directly by writing the jquery extension.
JQuery plug-ins are mainly divided into three types
1. Plug-ins that encapsulate object Methods
(This plug-in encapsulates the object and is used to operate the object obtained through the selector, that is, the method needed here)
2. Plug-ins that encapsulate global function
When I was just getting started with JQuery, the downloaded files include jquery. vsdoc. js, jquery. min. js and jquery. js is not very clear about the role of each file and the package to be introduced. Sometimes the introduction of jquery. min. js can be executed, and some
JQuery plug-in development tutorials help you improve jQuery by a step.
I think the most successful part of jQuery is that its scalability attracts many developers to develop plug-ins for it, thus establishing an ecosystem. This is like a big company competing to be a platform. Apple, Microsoft, Google, and other giants all have their own platforms and ecosystems
Jquery provides two methods for development plug-ins:
JavascriptCode
Jquery. FN. Extend (object );
Jquery. Extend (object );
Jquery. Extend (object); adds a new method to the class to extend the jquery class itself.
JQuery application (3) jQuery chain and jquery Application
In the previous example, the jQuery statement can be linked together, which not only shortens the code length, but also achieves special effects in many cases.
The code above adds the style css1 to the
In the jQuery
As we all know, jQuery is now very popular, and jQuery has already been used on Baidu's new homepage. Today we will summarize how to write better jQuery code to make jQuery Code better and faster to execute, I hope this jQuery tutorial will change your previous unreasonable
jquery Operation Dom:To modify a property:Using the attr () methodattr (name, value)Name: Property name of the property to be modifiedValue: the corresponding valueAttr method, if the current tag has a property to be modified, it will be modified, if not, add directlyExample: $ ("a"). attr ("href", "http://www.baidu.com");To modify multiple property values:attr (obj)$ ("img"). attr ({"title": "File name","src": "Path","Alt:" Picture "})Get Propertiesa
JQuery uses the jquery. form. js plug-in to submit Form forms using AJAX. jquery. form. js
The jQuery Form plug-in has the following advantages:1. Pre-Submission verification is supported.2. callback after submission is supported.3. Use AJAX for a good user experience4. The submission method is flexible. You only need
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.