The RegExp type of javascript learning notes. For details about js learning, refer to 1. Matching pattern mark:
G ------ indicates the global mode, instead of immediately ending when the first match is found to be successful.
I ------- indicates the
Introduction to js intermittent call and timeout call in javascript learning notes. For details about js learning, refer to section 1. setTimeout () for timeout call ()
The setTimeout () method accepts two parameters. The first parameter is the
Check whether the input of the input is valid. If there is a problem with the Chinese character input, how can I determine whether the Chinese character has been input to the input to record the data? I will test the results over the past few days
The effect is similar to the switching effect of images of different sizes in Googlepicasa album. This example uses the font-size method to control the image size with Google. However, jQuery code is developed based on the effect and the logic is
Today, I saw a small effect on the bulletin board of a website, if there are 2 announcements or more there is a rolling effect, specially organized to share with you online demonstration: http://demo.jb51.net/js/2012/callboard/
JQuery code
The
Recently, a JQuery plug-in is used because of project requirements. After I put the plug-in down, I soon found that many default plug-in styles do not meet the project requirements and must be modified.
Recently, a JQuery plug-in is used because of
The two methods should be returned according to W3C specifications. Let's take a look at the official explanation first, and then choose to use them according to W3C specifications:
QuerySelector:Return the first matching Element node within the
In the description of the variable object in Chapter 12th, we already know that the data of the execution context (variables, function declarations, and function parameters) are stored in the variable object as attributes.
PrefaceIn the description
In fact, if we have a computer language foundation, we should know that operators may even be more proficient than me, so I will not explain them much. Let's just talk about other unfamiliar operators.
Javascript: Operator
In fact, if you have a
Javascript dynamically adds, deletes, and verifies the implementation code of talbe. For more information, see the following:
The source code is as follows:
The Code is as follows:
Recently, a fom plug-in of jquery was used. It is a jQuery plug-in that fully supports forms. When I submitted FormPost using ajaxSubmit yesterday, I found that the Chinese data retrieved by the server was garbled. This may be because jquery is UTF-8
You can directly create objects in JS using the direct quantity method. The following describes how to define a constructor (function ):
The Code is as follows:
Function Person (name, age ){This. name = name;This. age = age;}Var p = new Person
The variable declaration in JavaScript is earlier than the value assignment analysis. For more information, see the following.
The Code is as follows:
Var a = 3;
There are two steps:
1. initialize a as undefined.
2 a value 3
So there will be
The countdown JS for multiple products on the same page is implemented based on object-oriented javascript code. For more information, see
The Code is as follows:
Summary of common methods in jsString objects. For more information, see
1. The charCodeAt method returns an integer representing the Unicode encoding of characters at the specified position.StrObj. charCodeAt (index)
Note:
Index indicates the
This time, I will mainly share some special effects on images that I personally think are shocking, including jQuery, CSS3, cute crow animations, and simple picture playing animations, of course, some of you may have seen it, but it doesn't matter.
There are many articles on inheritance in js on the Internet. Here I will write my understanding of inheritance in js in the first stage:
The Code is as follows:
Function (){This. funB = function (){Alert ('a: funb ');};}A. prototype = {FunA:
The image slide plug-in is used in many places on the homepage or image topic page of the webpage to switch multiple images cyclically. You can click the left and right buttons to switch between images. I believe everyone knows that jQuery is one of
JQuery is a very good JavaScript framework and plays an important role in current Web development projects. JQuery is simple and flexible to use, and there are also many mature plug-ins to choose from. It can help you add some very good results to
In general, we need to create an instance using a native class or a custom class using the new operator to create an instance using the constructor, the instance inherits all the public methods on the constructor prototype, such as new Object () and
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