There are 20 super cool and most practical jQuery instances. It is a good reference and learning material for anyone who uses and learns jquery.
James Padolsey Color Switcher
Click the color square in the upper right corner to change the
The following code encapsulation is common and easy to understand. Only by first understanding this can we gain a deeper understanding of the json format-oriented and definition methods. JavaScript Information Encapsulation
Before coding, we need to
Review the use of arrays in JS. For details about how to learn js arrays, refer.
Truncated array: slice (startIndex, endIndex ):Returns the array with the specified start position and end position. Does not change the content of the original
Jquery selector is the most basic operation. When we use native javascript, we have to spend nine heads and two tigers to choose an object. With Jquery selector, the food is delicious, good health ......
1. Basic
We know that jquery is the most
Extjs dynamically loads the implementation code of the tree. For more information, see. Extjs dynamically loads the tree. First, design the table for storing the tree information in the database.
The Code is as follows:
USE [KimiExtjs]GO/*****
JQuery is so popular, and a variety of jQuery plug-ins are also full of sky. Have you ever thought about writing some of your common JS functions into jQuery plug-ins? If your answer is yes, come on! Learn to write the jQuery plug-in with me! Many
In Javascript, there is no direct implementation of object-oriented, and the code is also very flexible. What I want to talk about today is how to write classes and static classes in Javascript. This is my usual method. You can also make it easier,
A tab effect implemented based on JQuery focuses on the fact that there is no inline event handler in HTML, but is defined in the js file to separate behavior and structure. In actual application, you can add N similar tabs as needed to ensure the
Today, the method for retrieving elements by class name is applied in the script, but it is not very efficient. As a result, the method of its detection element class name is slightly modified, improving the efficiency by about 3. today, I saw a
Javascript, json-implemented js script search, add pagination, with source code 1.Web contains three directories:
1.1 content.htm // run the file directly.
1.2 js // Several js files useful here, where the data source starting with db (that is, the
Move the mouse up, add N pixels to the left of the element, and move the mouse over the meeting slowly to the original position. This control is developed based on Jquery and should reference the Jquery framework.
Control Code
The Code is as
The prototype attribute of the object in JavaScript is used to return the reference of the Object Type prototype. We use the prototype attribute to provide a set of basic functions of the object class. In addition, the new instance "inherit" of the
If a child match is defined in a regular expression, the length of the parameter changes with the number of child matches. If a child match is not defined, the length is fixed. In general, we may use a regular expression to replace the text:
The
To operate an element on the page, you must first select it, which requires a selector. The selector can be considered as an enhanced getElementById method. The getElementById method returns an HTML element, and the jQuery selector returns a pack of
Javascript Event Query is comprehensive. For more information, see. Click () object. click () enables the object to be clicked.
Whether the closed object window has been closed; true/false
ClearTimeout (object) clears the set setTimeout
Messages_cn.js, the validation plug-in for jquery. validate. jsvalidation form
(If messages_cn.js is not referenced, It is a Chinese prompt)
The Code is as follows:
Required: "This field is required .",Remote: "Please fix this field .",Email:
In website development, we often need to display the dialog box in the center of the screen. If Javascript is used because of the differences in browser implementation, it is very troublesome to implement it. But JQuery can easily achieve it.
The
The Hungarian naming method was invented by a Microsoft programmer. Most C and C ++ programs use this method. JavaScript variable Hungary name Method
Syntax of the Hungarian name method:
Variable name = type + Object Description
Type refers to the
In this chapter, I will handle a simple W3CDOM script. He will help us look at interaction design from a new perspective. Idea
Suppose you have an online CD rating tool. You want users to view all their favorite CDs. But how do you know how many
JavaScript is the most popular programming language in the world. It has been labeled as a nightmare by Web developers. Although the real nightmare is actually DOMAPI, A large number of developers and designers have paid more and more attention to
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