The project team after the company to develop a client software, software interface with the Web interface to reflect, So there's a lot of JavaScript to use. After coming to the company, the project team developed a client-side software that uses a
window.open use method and parameter description
First, window.open () Support environment:
javascript1.0+/jscript1.0+/nav2+/ie3+/opera3+
Second, the basic grammar:
window.open (Pageurl,name,parameters)
which
Pageurl as a child window
The SetTimeout method is the timer program, which is what to do after the time. Just finish it.
The SetInterval method is to indicate that an operation is repeated at a certain time interval.
If you implement the function of Setinerval with
In JavaScript, the data type is divided into integral and floating-point types, where the floating-point type has no single or double precision, and all variables are declared with Var only (well, don't remember int long float double ...). What type
JavaScript Variable Hungarian Naming act
Hungarian name French law:
Variable name = Type + Object description
Type refers to the type of the variable
Object description refers to the name of an object or part of a name, requires a clear meaning,
has been very confusing Masaki why the following for loops are also despised,
for (var i = 0; i
Looping code
}
Read the following article finally TM understand ...
Language level aspects
Cycle
In JavaScript, we can use a for (;;), a while (),
Many languages, in order to process asynchronous patterns more in the usual order, contain an interesting scenario library, which is called promises,deferreds, or futures. The promises of JavaScript can facilitate separation of concerns to replace
This method returns the sine of a number. The Sin method returns a value between 1 and 1 that represents the sine of the parameter.Grammar
Math.sin (x);
The following are the details of the parameters:
X: A number
return
This method returns the natural logarithm of a number (the base is e). If the value of the number is negative, the return value is always nan.Grammar
Math.log (x);
The following are the details of the parameters:
X: a number.
This method returns a parameter that is less than or equal to the largest integerGrammar
Math.floor (x);
The following are the details of the parameters:
X: A number
return value:
Returns the largest integer less than or
This method returns the tangent of radians. The Atan method returns a numeric value between-PI/2 and Π/2 radians.Grammar
Math.atan (x);
The following are the details of the parameters:
X: A number
return value:
The JavaScript Date.setmonth () method sets the monthly specified date by local time.Grammar
Date.setmonth (monthvalue[, Dayvalue])
Note: the appearance and data in parentheses are optional
The following are the details of the
Call and Apply methods
The call method can change the context this pointer, and similar methods apply, primarily to keep the current this instance pointer consistent, or to change the this pointer in special cases, when each method of the JS object
Delete string trailing null character: $.trim ()
Similar functions are provided in many advanced languages, and the jquery class library provides such functions as well. Specific usage: $.trim (value) deletes the trailing and ending whitespace
This example describes the JavaScript browser object model BOM. Share to everyone for your reference, specific as follows:
The Window object is at the top level of the BOM hierarchy. It contains a number of very important child objects, including
The examples in this article describe the Arguments.callee usage in JavaScript functions. Share the reference to the park public, specific as follows:
More readers interested in JavaScript-related content can view the site
Objective
The array object in JavaScript, which we often say, is primarily used to encapsulate and manage multiple data of any type.
Array objects are supported by all major browsers.
We all know that the array instance has these four methods:
This method will cause it to appear as bold as if it were in a tag string.Grammar
String.bold ()
The following are the details of the parameters:
NA:
return value:
Return string contains tags
Example:
javascript
The splice () method of the JavaScript array changes the contents of the array, adds new elements, and eliminates the old elements.Grammar
Array.splice (index, Howmany, [element1][, ..., elementn]);
The following are the details of
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.