General Event Event Browser support description
OnClick ie3| n2| O3 Mouse click events, multiple mouse clicks within a controlled range of an object
OnDblClick ie4| n4| O Mouse Double-click event
OnMouseDown ie4| n4| O the button on the mouse is
The code is as follows:
Copy Code code as follows:
var Rxhtmltag =/(]*?] \/>/g,
rselfclosing =/^ (?: Area|br|col|embed|hr|img|input|link|meta|param) $/i,
Fclosetag = function (all, front, tag) {
return rselfclosing.test (TAG)?
All:
If you have a programming base, it's easy to learn JavaScript, and if you don't have a programming base, don't worry, we'll explain every line of code for you.
Copy Code code as follows:
We'll skip the HTML section, and if
Although we'll talk about using programs to create scope objects, we focus mainly on how to convert the user's selection to the scope of the World wide range or Microsoft document scope object.
What is the scope
Scope refers to any part of an
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
The JavaScript date.getutcminutes () method returns minutes on the specified date at a common time. The value returned by getUTCMinutes is an integer between 59 and 0.Grammar
Date.getutcminutes ()
The following are the details of the
The JavaScript date.getutchours () method returns the time at the specified date according to the Universal Time. The value returned by getUTCHours is an integer between 0 and 23.Grammar
Date.getutchours ()
The following are the details of
Event
Events are part of the DOM (Document Object model). The event flow is the order in which the events occur, which is the main difference between IE and other browsers on event support.
I. Flow of events
1. Bubbling Event
The solution on IE is
To do the conversion of the Chinese and English, to get the exact parameters and take out, so do a simple HTML in the use of JS to get the address bar of an object.
There are three ways:
1, request. QueryString ("Parameters")//Gets the specified
Some very useful and necessary small script code:Script 1: Play the sound automatically after entering the home pageScript 2: After entering the homepage automatically maximum words, the province went to the click on their ownScript 3: Script that
Directory:
Lazy load meaning (why to use lazy load)
Principle
Code
In the previous article to introduce the JavaScript implementation of the image lazy loading (lazyload), you can refer to.
Lazy load meaning (why to use lazy load)
This method will cause a string to be italic, as if it were in the tagGrammar
String.italics ()
The following are the details of the parameters:
NA
return value:
Return string with tag
Example:
javascript String
This method creates an HTML anchor that is used as a hypertext target.Grammar
String.anchor (Anchorname)
The following are the details of the parameters:
Anchorname: Defines the name of the anchor
return value:
String that
The JavaScript date.getmilliseconds () method returns the number of milliseconds for a specified date, based on local time. Returned by getmilliseconds is a value between 0 and 999.Grammar
Date.getmilliseconds ()
The following are the
The JavaScript array sort () method sorts the elements of an array.Grammar
Array.Sort (comparefunction);
The following are the details of the parameters:
Comparefunction: Specifies a function that defines the sort order. If omitted,
The JavaScript array Tosource () method returns a string representing the source code of the array. This approach is supported by Mozilla.Grammar
Array.tosource ();
The following are the details of the parameters:
NA
return value:
The JavaScript array shift () method deletes the first element in the array and returns the element.Grammar
Array.shift ();
The following are the details of the parameters:
NA
return value:
Returns an array to delete a single value.
The JavaScript array join () method adds all the elements of an array to a string.Grammar
Array.join (separator);
The following are the details of the parameters:
Separator: Specifies that the string separates each element of
Each method in the JavaScript array tests whether all the elements in the array are provided by the supplied function to implement the test.Grammar
Array.every (callback[, Thisobject]);
The following are the details of the parameters:
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