This method causes to be displayed in a small font, as if it were a string in a tag.Grammar
String.small ()
The following are the details of the parameters:
NA
return value:
Return string label
Example:
javascript
This method will cause as if it were in a string that is displayed in the specified color tag.Grammar
String.fontcolor (color)
The following are the details of the parameters:
Color: The string represents a hexadecimal RGB ternary or
This method causes as if it were a string in a label that is displayed in a fixed spacing font.Grammar
String.fixed ()
The following are the details of the parameters:
NA
return value:
Returns the label of a string
Example:
This method causes a string to blink as if it were a blink tag.Grammar
String.blink ()
The following are the details of the parameters:
NA:
return value:
Returns a string with a tag.
Example:
javascript String Blink ()
This method returns the call string value converted to uppercase.Grammar
String.touppercase ()
The following are the details of the parameters:
NA
return value:
Returns a string representing the specified object
Example:
This method returns a subset of a string object.Grammar
String.substring (Indexa, [INDEXB])
The following are the details of the parameters:
Indexa: Integers between 0 and 1 that are less than the length of the string.
This method extracts part of the string and returns a new string.Grammar
String.slice (Beginslice [, Endslice]);
The following are the details of the parameters:
Beginslice: Start extraction from zero-based index position
Endslice:
This method calls a string object that returns the value specified by the index last occurrence, begins the search in the Fromindex or returns 1 if the value is not found.Grammar
String.LastIndexOf (searchvalue[, Fromindex])
The
This property returns the number of characters in the string.Grammar
String.Length
The following are the details of the parameters:
A string
return value:
Returns the number of characters in a string.Example:
javascript
This is a special value that represents any value greater than number.max_value. This value is represented as "infinity." This value is similar to the infinity in its math. For example, anything multiplied by positive_infinity result is
This is a special number that represents a value less than number.min_value. This value is represented as "negative infinity." This value is similar to the infinity in its mathematical behavior. For example, any thing multiplied by negative_infinity
The Number.MAX_VALUE property belongs to a static number object. This represents the maximum number of possible positive numbers that JavaScript can work with in a constant.
The constant has an actual value of
Grammar
You can access this value
JavaScript is an object-oriented programming (OOP) language. A programming language can be referred to as object-oriented, providing developers with four basic functions:
Encapsulation-stores related information, whether data or methods, or
JavaScript supports three important types of dialog boxes. These dialog boxes can be used to raise and alert, or to be confirmed by any input or with an input from the user.
Here, we'll look at each of the dialog boxes in one place:Alert dialog box:
What is page redirection?
When you click on a URL to access a page x, but inside you are directed to another page y, just because of page redirection. The idea is to refresh from a different JavaScript page.
There may be various reasons why you
You can use the JavaScript Location.reload method to refresh a Web page. When the user clicks on a link this code can be invoked automatically in an event.
If you want to use the mouse to click to refresh the page, you can use the following code:
The JavaScript array Some () method tests whether an element in an array implements the test by providing functionality.Grammar
Array.some (callback[, Thisobject]);
The following are the details of the parameters:
Callback:
The JavaScript array reduce () method applies a function to two values (from left to right) of the array at the same time to reduce to a value.Grammar
Array.reduce (callback[, InitialValue]);
The following are the details of the
This method causes the string to appear as subscript, as if it were in the tag.Grammar
String.sub ()
The following are the details of the parameters:
NA
return value:
return string tag
Example:
javascript String Sub (
This method causes a string to appear as highlighted text as if it were displayed in the tag.Grammar
String.strike ()
The following are the details of the parameters:
NA
return value:
Returns a string with a tag.
Example:
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