Stringobject.charat (Index) method: Returns the character at the specified index position.
Both the Stringobject.slice (Start,[end]) and stringobject.substring (Start,[end]) methods accept two parameters, which are the starting and ending positions
Split definition and usage
The split () method is used to split a string into an array of strings.
Grammar
Stringobject.split (separator, howmany) parameter description
Separator required. A string or regular expression that splits the Stringobject
Today when the test found the problem, when the database in the month of 09 when the problem, with the parseint conversion after the 0. So puzzled. Measured for a long time, did not find the problem in my code, to Google search a bit, just know it
JS SetTimeout method is more useful, usually used in the page refresh, delay execution, and so on. But many JavaScript novices are still not very familiar with the usage of settimeout. Although I have studied and applied JavaScript for more than two
A. JavaScript introduction:Before learning JavaScript, there are some things you need to know first:HtmlXhtmlI don't think these need to go too deep, understand a probably on the line.JavaScript is:JavaScript is designed to add interactive behavior
1. document.write (""); Output statementThe annotation in 2.JS is//3. The traditional HTML document order is: document->html-> (head,body)4. The DOM order in a browser window is: window-> (navigator,screen,history,location,document)5. Get the name
Idea
Let's say you have an online CD rating tool. You want users to see all the CDs they like. But how do you know how many users will see on average? How many fields do you need to add on this page?
This was a real problem before W3cdom appeared.
Review
The event object contains three aspects of information. Look back on a piece of content!
The properties and methods in the event object, mainly information about the mouse and keyboard.
1. Get Event Type
Event object property Type
2. Get
The JavaScript date.todatestring () method returns a date part of the human-readable form of a Date object.Grammar
Date.todatestring ()
The following are the details of the parameters:
NA
return value:
Returns the date part of the
The JavaScript date.settime () method sets the time for the date object to be represented by the number of milliseconds from January 1, 1970 00:00:00 UTC.Grammar
Date.settime (TimeValue)
Note: The data inside and outside the brackets is
This example describes the use of array objects in JavaScript. Share to everyone for your reference, specific as follows:
Array arrays have many commonly used methods and properties, which are summarized as follows:
1. Length property, gets the
If there are any flaws, please point out, thank you.
1. General Global Variables
In browser, there are many ways to refer to a global variable, you can refer to the variable directly, You can also use window.variable to refer to global variables
Yesterday Adam handed me an overloaded example of JavaScript, and it felt good. Although it is still not quite clear. How to do it, but stick it out.
Implementing SetTimeout Object Objects
Look at the following code to achieve the inside function
The JavaScript Boolean.tosource () method returns a string representing the source code of the object.
Note: This method does not run in Internet Explorer.Grammar
Boolean.tosource ()
The following are the details of the parameters:
NA
The JavaScript boolean.constructor () method returns a prototype Boolean function that references to the creation instance.Grammar
Boolean.constructor ()
return value:
NA
The following are the details of the parameters:
Returns the
1, Javacsript implementation of hyperlinks: Dot
2, the function call in JavaScript can be before the function declaration.
3. JavaScript does not require all paths to have return values, as in C #, and returns undefined when there is no return
1.1 Slightly
1.2 version. Slightly
1.3 JavaScript and browser slightly
1.4 JavaScript function
Excerpt from "3Cschool"
What can JavaScript do?
JavaScript provides an HTML designer with a programming tool
HTML creators are often not
The commonly used metacharacters are:
•. Find a single character, except for line breaks and line ends;
\w Matching letters, Chinese characters, numbers, underscores and other symbols;
\s matching whitespace (including spaces, tabs, etc.);
\d
The JavaScript array push () method appends the given element (multiple) of the last array, and returns the length of the new array.Grammar
Array.push (element1, ..., ELEMENTN);
The following are the details of the parameters:
Element1,
The JavaScript array map () method creates a new array that uses the results of the functions provided on each element of this array.Grammar
Array.map (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