Today has been tossing for a while, finally can. Share a bit. Oh
Classic.. JavaScript and regular expression validation must be integers and retain three decimal places ...
3 decimal and integer
Http://uefirst.com/bbs/simple/?t240.html
The prototype in JavaScriptThe prototype in JavaScript (Prototype) is one of the most special places in JavaScript. Whether it's object-oriented or inherited JavaScript, using prototype is essential.1 using
A trustworthy object is one that does not have a public property and its methods do not refer to this object. A secure object function follows a pattern similar to a parasitic constructor, but has two different points: one is that the instance
Yesterday saw a queryselectorall () thing, found that the use of similar to the Getelementsby series, they want to delve into the differences between them, the following is the information found.
PS: The reason to understand this knowledge point
Two
Closures (closure) are a difficult and unique feature of the JavaScript language, and many advanced applications rely on closure implementations.
Here are my learning notes, which should be useful for JavaScript beginners.
Scope of a variable
To
The object in JavaScript does not provide a method of length
However, the Object.keys can be converted through the array.
The Object.keys () method returns an array of property names for all enumerable properties of a given object, in which the
Directory • Parameter pass JavaScript call Flash Method • Method Performance Tuning parameters passed back to directory
When JavaScript calls a Flash method, Flashplayer converts the arguments to XML format, which is actually thrown into the global
Directory
First, advanced functions
1-1 Safe Type Detection
1-2 Scope-Safe constructors
1-3 Lazy Load function
1-4 function Bindings
1-5 function currying
1-6 Inverse function currying
I. Advanced
Because there are many types of overlays in a map, because of an overlay (which is generally custom), only one occurrence is allowed throughout the mapThe first thing to think about is that each time you create this type of overlay, clear this type
Grammar Rules(1) JavaScript is not sensitive to line, indent, and space.Note: Each statement ends with a semicolon, although the semicolon is not mandatory, but for the program to be compressed in the future, if not semicolon, after compression will
Event bubbling
Event Capture: parent-level elements are triggered first, and child-level elements are triggered later.
Event bubbling: Child-level elements are triggered first, and parent-level elements are triggered later.
Currently, in IE
1.doc ument. formname. Item ("itemname ")
Description: You can use document. formname. item ("itemname") or document. formname. elements ["elementname"]; In Firefox, only document. formname. elements ["elementname"].Solution: Use document. formname.
Remove spaces at the beginning and end, check whether the string contains Chinese characters, open a new window, verify the IP address, normalize the floating point number to the specified precision, and determine whether the provided string is
According to the title, this blog article introduces this small example. The following blog summarizes JS Object-Oriented Knowledge.
The purpose of this small example is to understand JS Object-Oriented Knowledge. Take an example and try it. Then
We have discussed how to encapsulate private instance members, public instance members, Private Static members, public static members, and static classes in JavaScript. This time we will discuss the other two elements of object-oriented programming:
The question of JavaScript data types has been discussed many times, but many books still use incorrect and chaotic ideas, so I will explain it in detail.
The reason for this discussion is that, in my MSN blog (now wordproess, here), The argb team
Recently, we used the formula for calculating the distance between two points on the earth's surface based on latitude and longitude, and then implemented it using Js.
There are two ways to calculate the distance between two points on the Earth's
// Remove spaces at both ends of the string. The usage is string. Trim ()String. Prototype. Trim = function (){Return this. Replace (/(^/S *) | (/S * $)/g ,"");}
Function checkinput (){// Verification nameDocument. form1.addmessage1 _ messagetitle.
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