"Javascript--string Object"

Source: Internet
Author: User

JavascriptString ObjectString Object Properties
Properties Description
Constructor A reference to the function that created the object
Lenght The length of the string
Prototype Allows you to add properties and methods to an object
String Object method The
Properties Description
charAt () returns the character at the specified position.
charCodeAt () returns the Unicode encoding of the character at the specified position.
concat ()connection string.
Big () displays the string in a large font.
Blink () displays the flashing string.
Bold () use bold to display the string.
fixed () displays the string as a typewriter text.
FontColor () displays the string using the specified color.
fontsize () displays the string using the specified dimensions.
fromCharCode () creates a string from character encoding.
indexOf () retrieves a string.
italics () use italic to display strings.
lastIndexOf () the string is searched forward from the back.
Link () displays the string as a link.
Localecompare () compares two strings in a local-specific order.
match () finds a match for one or more regular expressions.
replace () replace the substring that matches the regular expression.
Search () retrieves a value that matches a regular expression.
Slice () extracts a fragment of a string and returns the extracted part in a new string.
Small () use a small font size to display the string.
Split () splits a string into an array of strings.
strike () use strikethrough to display strings.
Sub () displays the string as subscript.
substr () extracts a specified number of characters from the starting index number in a string.
substring () extracts the characters between two specified index numbers in a string.
sup () displays the string as superscript.
tolocalelowercase () converts the string to lowercase.
tolocaleuppercase () converts the string to uppercase.
toLowerCase () converts the string to lowercase.
toUpperCase () converts the string to uppercase.
Tosource () represents the source code for the object.
toString () returns a string.

Not finished ....

"Javascript--string Object"

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.