2014년 6월 16일 월요일

JavaScript String Object Methods

concat()
- Joins two or more strings, and returns a copy of the joined strings

indexOf()
- Returns the position of the first found occurrence of a specified value in a string

replace()
- Searches a string for a specified value, or a regular expression, and returns a new string where the specified values are replaced

split()
- Splits a string into an array of substrings

substring()
- Extracts the characters from a string, between two specified indices

trim()
- Removes whitespace from both ends of a string



http://www.w3schools.com/jsref/jsref_obj_string.asp
http://icoon22.tistory.com/219

댓글 없음:

댓글 쓰기