This article mainly introduces the use of the test () method in the regular expression of JavaScript, which is the basic knowledge in the learning of JS, and the friends who need it can refer to
The test method matches a regular expression with a
This example describes how JavaScript checks whether a number is an integer or a floating point. Share to everyone for your reference. Specifically as follows:
Check for integers:
1 2 3 4 5 6 7
function Isint (n) {return typeof n =
This article illustrates how JavaScript implements the iterator pattern. Share to everyone for your reference. The specific analysis is as follows:
Often on the internet to see a lot of JS design mode examples. Here's how JavaScript implements the
This article mainly introduces the introduction of JavaScript in the use of Unshift (), is the basic knowledge of JS learning, the need for friends can refer to the
The Unshift () method of a JavaScript array adds one or more elements to the
This article mainly introduces the JavaScript date () method to use the detailed, is the basic knowledge of JS introductory learning, need friends can refer to the
The JavaScript date () method returns today's day and time and does not require any
The example in this article describes the method by which a JavaScript implementation function returns multiple values. Share to everyone for your reference. The specific analysis is as follows:
Here returns multiple values with a dictionary type
?
This article mainly introduces the use of the anchor in JavaScript, is the basic knowledge of JS introductory learning, need friends can refer to the
This method creates an HTML anchor that is used as a hypertext target.
Grammar
?
1
This article mainly introduces the use of the fixed () JavaScript, is the basic knowledge of JS learning, need friends can refer to the
This method causes as if it were a string in a font that is displayed in a fixed spacing of the label.
Grammar
This article mainly introduced through the example to understand JavaScript has no function overload concept, very easy to understand, the need for friends can refer to the
Imagining the function name as a pointer also helps to understand why there
This method requires a date and returns the number of milliseconds to midnight in the universal Time since January 1, 1970.
Grammar
1
DATE.YEAR,MONTH,DAY,[HOURS,[MINUTES,[SECONDS,[MS]])
Note: The data in parentheses is
This article mainly introduces the use of the length attribute in JavaScript, is the basic knowledge of JS learning, the need for friends can refer to the
This property returns the number of characters in the string.
Grammar
?
1
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
1
Date.getutcminutes ()
The following are the
This article mainly introduces the usage of the void statement in JavaScript, which is the basic knowledge in the learning of JS, and the friends who need it can refer to
Void is an important keyword in JavaScript that can be used as a unary
Higher-order function-If a function receives a value that is or returns a function, then we can call this function a High-order function. higher-order As we all know, JavaScript is a weak type of language: JavaScript functions are neither input
This will return the value of 10 to the bottom of E, which is about 0.434.
Grammar
1
math.log10e
Example:
1 2 3 4 5 6 7 8 9 10 11
javascript Math log10e property var property_value = math.log10e
A. String: Stores a string and provides the properties and methods needed to handle the string.
1. Create a String object: Display and implicit
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
js function
*
This article mainly introduces the use of sub () in JavaScript, is the basic knowledge of JS introductory learning, need friends can refer to the
This method causes the string to appear as subscript, as if it were being marked.
Grammar
?
This article mainly introduces the JavaScript in the specified function name related methods, is the basic knowledge of JS learning, need friends can refer to the
JavaScript1.2 introduces the concept of function text as a new method of defining
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