Recently I wrote some JS animations, which are commonly used in JS timers (setTimeout & set interval) to find relevant materials and share some experiences with you.
You can use the timer created by setTimeout & set interval to implement
One of the frequently asked questions in front-end interviews is "What are the basic types of JavaScript ?".
Some answer "numbers, strings, and Boolean", and some may add "null, undefined ". Some people may think that "object" is also the basic
I saw a good question in the Q & A (why does this JavaScript code have circular references ?)Article.
Original address: Memory leakage mode in Javascript
Address: Memory leakage mode in JavaScript]
Javascript is a powerful scripting language
What is it in the Javascript module?CodeAre you sure you want to show it?
In fact, the previous article has written a piece of event module code.
Event = function () {// do morereturn {BIND: function () {}, unbind: function () {}, trigger:
Code
Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->
/*
** Format the time object;
*/
Date. Prototype. Format
=
Function
(Format ){
/*
* Eg: format = "yyyy-mm-dd hh: mm: SS
Let's first look at the SectionCode:
VaRS = "test";VaRLen = S. length;
We know that the string declared as above in Javascript is not an object, but since S is not an object, why does it have the Length attribute?
The reason is that in
TestCode:
Div ID = "Test" > Div > Script > Document. oncontextmenu = Function (){ Return False ;}; VaR Odiv = Document. getelementbyid ( " Test " ); Odiv. onmousedown = Function (E) {e = E | Window. event; VaR
This article first blog Park: http://jscode.cnblogs.com, reprint please indicate the source.
Regarding the differences between element and node, the differences between cilldren and childnodes are unclear. This article attempts to let everyone
The delete in Javascript has not been quite clear. Recently I have seen two articles about this.ArticleThe two sections are now translated (the content has been modified and added, and the order is not completely the same. If you are interested,
At the beginning of this article, we will record some tool functions for writing classes. Through the previous article, we know that they are essentially constructors + prototypes. I am not afraid to understand the various writing methods it
From this article, we will analyze JS oo writing methods from a shortest to a deep one. There will be about 5-8 articles. The writing methods of Popular Libraries (frameworks) will be analyzed later.
Writing Methods of some writing tool
Regexp, a regular expression object in JavaScript.
Create Regexp object syntax
New Regexp (pattern, attributes );
Direct amount syntax
/Pattern/attributes
Or yes.
New Regexp (/pattern/attributes)
Note: If you use new Regexp
In this article, let's take a look at the writing methods of various JS libraries. This is the last article in the writing class series.
1. Writing prototype
Use the class. Create method in prototype as follows:
// Class Name: personvar
When we are writing a webpageProgramThere are many ways to provide dynamic display of the page to improve the visual effect of the page. This example uses a simple JavascriptCodeThere are many examples of dynamic display of image information.
Preface:
Password strength is a common function and is relatively simple. It is mainly about how to develop this strength rule. Now, you need to verify the password strength. The previous verification is relatively simple and cannot meet your
If you do not use a class library or do not have your own class library, it is always advantageous to reserve some common functions.
(10) addevent
The most popular version on the internet is Scott Andrew. It is said that the Javascript community
String There are many methods for objects, so the scope of our discussion here is limited to only two of them, Indexof () And Substring () Method.
As you can see,JavascriptA string is composed of characters. Each of these characters
Web2.0 focuses on the spirit of participation of the masses. The success of blog, group, wiki encyclopedia, and RSS aggregation reflects this point. However, to be involved by the masses, practicality, personalization and humanization are
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