Event-driven in JavaScript is the main event that is raised by the action of a mouse or hotkey as follows:1, mouse click event onclick such as: ()Typically used for the following controls:Button Buttons ObjectCheckBox checkbox or Check List--with
This article mainly introduced the JavaScript in the Bold () method to use the detailed, is the basic knowledge of JS learning, need friends can refer to the
This method will cause it to appear as bold as if it were in a label string.
Grammar
?
The Javascript Date.parse () method accepts a date string and returns the number of milliseconds since midnight January 1, 1970.
Grammar
1
Date.parse (datestring)
Note: The data in parentheses is optional
The following
This article mainly introduces the use of JavaScript charat () method, is the basic knowledge of JS learning, need friends can refer to the
This method returns the character from the specified index.
The characters in the string are indexed from
The JavaScript date.setutcdate () method sets the day of the month according to the Universal Time, on the specified date.
Grammar
1
Date.setutcdate (Dayvalue)
Note: The data inside and outside the brackets is optional
Delete the confirmation dialog box JS Code, there are several ways of writing, there are simple, compatible with the good, the following said several ways, according to their own needs to choose
Requirements: When the user clicks the Delete button,
The JavaScript date.getutcmonth () method returns the month of the specified date according to the Universal Time. The value returned by getUTCMonth is the month corresponding to the integer between 0 and 11. 0 represents January, 1 represents
This returns the logarithm E of cardinality 2, which is about 1.442.
Grammar
1
math.log2e
Example:
1 2 3 4 5 6 7 8 9 10 11
javascript Math log2e property var property_value = math.log2e
This will return the ratio of a circle to its diameter, about 3.14159.
Grammar
1
Math.PI
Example:
1 2 3 4 5 6 7 8 9 10 11
javascript Math PI property
This will produce the following
This method converts a date to a string using a universal Time contract.
Grammar
1
Date.toutcstring ()
The following are the details of the parameters:
NA
return value:
Returns the conversion date to a string,
Everyone in the use of Dreamweaver in the timeline function or to make a very interesting animation effect, Dreamweaver will automatically generate specific program code for users, have you ever thought of the implementation of the principle of
This article mainly introduces the JavaScript in the small () method of using the detailed, is the basic knowledge of JS learning, need friends can refer to the
This method causes to be displayed in a small font, as if it were in a tagged string.
This article mainly introduces the use of strike () in JavaScript, is the basic knowledge of JS learning, need friends can refer to the
This method causes a string to appear as highlighted text as if it were displayed in the label.
Grammar
?
This article mainly introduces the use of substring () in JavaScript, is the basic knowledge of JS learning, need friends can refer to the
This method returns a subset of a string object.
Grammar
?
1
String.substring (Indexa,
This article to reflect the simple JavaScript implementation of the provincial urban three-level linkage effects, do not need to access the backend server, do not use Ajax, no refresh, pure JS to achieve the provincial and urban three-level linkage.
This example describes the use of Dom checkbox selection in JavaScript. Share to everyone for your reference. Specifically as follows:
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 This is the same as the same as the same
This article illustrates the navigation menu effect of JavaScript Implementation with the Pull-down submenu. Share to everyone for your reference. The implementation methods are as follows:
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
The examples in this article describe the use of dynamic functions in JavaScript. Share to everyone for your reference. The specific analysis is as follows:
?
1 2 3 4 5 6 7 8 9 10 11 12 13-14
dynamic function
I
This article mainly introduces the use of for...in statements in JavaScript, is the basic knowledge of JS introductory learning, the need for friends can refer to the
This is another loop that JavaScript supports. It is called the for...in loop.
The examples in this article describe JavaScript event delegate usage. Share to everyone for your reference. Specifically as follows:
?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19-20
var addevent = function (Elem, EventType,
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