This article mainly introduces SeaJS, a series of getting started tutorials, focuses on the use of SeaJS and the use of key methods. For more information, see
Download and install
To use SeaJS in a project, all you need to do is download sea. js
This article describes a simple example of Jquery. Form asynchronous Form submission. For more information, see.
Http://www.vaikan.com/docs/jquery.form.plugin/jquery.form.plugin.html #
1. Write a form on your page. A common form does not require any
This article describes how to generate random uppercase/lowercase letters using javascript. For more information, see
The Code is as follows:
/*** Returns a random lowercase letter.*/Function getLowerCharacter (){Return getCharacter ("lower ");
The principle is very simple. After the user enters the mailbox and leaves, we use jqueryajax to send data to mail. PHP file, and then it is used to find whether the mailbox is in the database and then feedback the corresponding information. Now, at
This article mainly introduces examples of js formatting time and js formatting timestamp. For more information, see
The Code is as follows:
/*** Format the time object;*/Date. prototype. format = function (format ){/** Eg: format = "YYYY-MM-dd hh:
Real-time countdown of webpages, accurate to seconds. Similar to the principle of Countdown to days, you can refer to the next useful js countdown! Real-time countdown of webpages, accurate to seconds, is the same as the principle of days countdown.
Next, let's talk about the bit operations in js (also applicable to other languages) based on your own cognition. If there is an error, please note that most languages provide bitwise operators, bitwise operators are widely used in c, c ++, and
Native javascript seamless scrolling currently supports vertical and horizontal scrolling. The following is a good example. You can refer to the currently supported vertical and horizontal scrolling.
Http://lgyweb.com/marScroll/
The following
This article introduces you to precise calculation, numerical formatting, and direct introduction of js files.
The Code is as follows:
(Function (){Var calc = {/*The addition function is used to obtain accurate addition results.Note: The addition
This article mainly introduces how to obtain cookies through JS settings. If you need cookies, you can refer to the JavaScript authoritative guide and the materials collected on the Internet during project development, two Methods for setting and
This article mainly introduces how to solve the jquery plug-in conflict. If you need a friend, please refer to it. I hope to help you with the following example, the jquery and jquery plug-ins lightbox are used for image floating amplification, so
This article mainly introduces the sample code for de-duplication and de-duplication of JS arrays. If you need it, you can refer to it for help.
Method 1: deduplication
The Code is as follows:
ScriptArray. prototype. distinct = function (){Var a = [
Remind everyone that Object. prototype. toString (). in the [objectclass] returned by call (param), the first letter of the class is in upper case, such as JSON, or even in upper case. Therefore, you can convert the class to lower case when making a
DOM is very easy to understand, but it is too official and hard to understand. We will translate it in a very simple language, if you are interested, you can refer to the following description before getting started. DOM is very easy to understand,
When searching for characters, the replace () method is used. This method is common and practical. The following is a good example. For more information, see, I hope to help you. One function that is usually used in text input boxes is to replace
Js arrays are used to create, assign values, add, and remove elements based on subscripts (values or characters). This article will introduce them in detail, if you are interested, refer to 1. Create an array.
The Code is as follows:
Var array =
Javascript select operations are common in forms. You can search for a lot of related information on the Internet. Next we will introduce in detail the various methods of JS dynamic select operations, if you are interested, you can refer to the
The select statement in the HTML Tag is frequently used. This article describes how to use js. The following is a good example. Do not miss it if you are interested.
The Code is as follows:
(Null) 1
The Code is as follows:
// Obtain
The implementation of this algorithm is to simulate the thinking and computing process of the human brain. If you need it, you can refer to it. 1) when we get a question, we will first follow the conditions we already know, sort and analyze the data.
In just 20 lines of code, you can write a CSS coverage test script. For more information, see document. styleSheets to save the set of all CSS rules on the current page. It can be used to traverse the page
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