Javascript string methods: charAt(), concat(), fixed(), fontcolor(), fontsize(), indexOf(), italics(), link(), match(), replace() , search(), etc.
The operating environment of this tutorial: windows7 system, javascript version 1.8.5, Dell G3 computer.
String method in javascript
Description | |
---|---|
Create HTML anchor. | |
Display the string in large font. | |
Display the flashing string. | |
Use bold to display strings. | |
Returns the character at the specified position. | |
Returns the Unicode encoding of the character at the specified position. | |
Connection string. | |
Displays a string in typewriter text. | |
Use the specified color to display the string. | |
Use the specified size to display the string. | |
Creates a string from a character encoding. | |
Retrieve string. | |
Use italics to display strings. | |
Search the string from back to front. | |
Display a string as a link. | |
Compares two strings in locale-specific order. | |
Find a match for one or more regular expressions. | |
Replace the substring matching the regular expression. | |
Retrieve values that match a regular expression. | |
Extracts a fragment of a string and returns the extracted part in a new string. | |
Use small font size to display strings. | |
Split the string into a string array. | |
Use strikethrough to display a string. | |
Display the string as a subscript. | |
Extracts the specified number of characters from the string from the starting index number. | |
Extract the characters between two specified index numbers in the string. | |
Display the string as superscript. | |
Convert the string to lowercase. | |
Convert the string to uppercase. | |
Convert the string to lowercase. | |
Convert the string to uppercase. | |
Represents the source code of the object. | |
Returns a string. | |
Returns the original value of a string object. |
String attributes in javascript
Description | |
---|---|
A reference to the function that created the object | |
characters The length of the string | |
Allows you to add properties and methods to the object |
javascript advanced tutorial】
The above is the detailed content of What are the javascript string methods?. For more information, please follow other related articles on the PHP Chinese website!