The Number.min_value property belongs to a static number object. This represents the constants that JavaScript can work with as small a positive number as possible.
The actual value of the constant is
Grammar
You can access properties using the
Copy Code code as follows:
function $ (ID) {return document.getElementById (ID);
The above is not a problem for the new version of the browser, if you use the old browser, you can use the following function
Copy Code code as
1.js Regular Expression (RegExp object)
The RegExp object has 3 methods: Test (), exec (), and compile ().
①test () method
The test () method retrieves the specified value from the string. The return value is true or false.
var patt1=new RegExp ("E")
The JavaScript array reverse () method reverses the array element. The first array element becomes the last element, and the last element becomes the first element.Grammar
Array.reverse ();
The following are the details of the parameters:
Javascript Determines whether two IP is on the same network segment
The following script does not judge the IP format and only determines whether two IP is in the same network segment.
Example, JavaScript determines whether two IP is on the same
One, the effect shows
Ordinary three Div
Drag the mouse to select the effect
Select all of the DIV
This does not seem to see the effect, it does not matter, we have a magic gif animation, to a whole animation effect feel.
Second, code
Please note that the effect of example2.html under Firefox is not rounded in IE, because of compatibility.
And the trigger action too fast will cause each Li to increment two times to three times, this reason is not related to the class (Action.js)
Learning a programming language is nothing but two aspects: one is grammar, the other is data type. The syntax of Class C language is nothing more than if, while, for, function, arithmetic, and so on, and object-oriented language plus object.Grammar
1. What is the data type?
Most of the programming languages we touch, the data are classified, including numbers, characters, logic True and false: Int,long,string,boolean .... And so on; we all know that computers are used in binary mode for data
Regardless of the coding style, design pattern, etc., the coding style is generally focused on the writing specification, while the design pattern is biased toward the program architecture design. These "patterns" in this article include some common
1, the creation of the function
Since I have used a lot of functions before, I am not here to share more.
2. Nested functions
Copy Code code as follows:
function of the ()
{
function people ()//nested functions, only the
{
Then there should be BOM and HTML5, but given the new changes in ECMAScript5 relative to ECMASCRIPT3, and these changes are also very interesting, so in this article I think of the interesting changes (not all changes) to focus on, but here is just
1. Match pattern Mark:
The g------represents the global schema, rather than finding that the first match succeeds and ends immediately.
I-------indicates case-insensitive mode
M-----represents multiple-line matches, and the next line continues to
Creation of arrays
First type:
Copy Code code as follows:
var colors = new Array ();
var colors = new Array (20);//Create an array containing 20 items
var colors = new Array ("Greg");//Create an array that contains 1 entries, the
ToFixed () method specifies the number of decimal places
The Toexponential () method represents the number with scientific notation, and the parameter specifies the number of decimal places.
The Toprecision () method automatically judges the call to
Before you mention the above concepts, first of all, let's talk about the implied parameters of functions in javascript: arguments
Arguments
The object represents the function being executed and the arguments of the function that called
The front end of a website is composed of three layers. A layer of architecture built by XHTML that includes structured and semantically labeled tags, as well as the content of a Web site. You can add a presentation layer (CSS) and a Behavior layer (
One, Conditional branch statement : if
Basic format:
if () {}else if () {}else{}
Execution process:
Second, the circular statement
2.1 Pre-Test Loop statement: Evaluate the export condition before the code in the loop body is executed.
JavaScript Math.ceil methodThe Math.ceil method is used to rounded up a number to get the smallest integer greater than or equal to the value. The syntax is as follows:
Math.ceil (x)Parameter description:
Parameters
Description
Pass the function as a parameter into another function. This function is called a callback function.
It is often the case that the layer A and B of a project are coordinated by different people. Layer A is responsible for the function funa,b layer
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