String.charat (POS);
The Chartat method returns the character of the POS position in string.
/* * * Returns the character at the parameter position */ var name = "CHENQF"; Name.charat (1); //
String.Concat (String ...);
Constructs a new string by connecting the string to the argument.
/* * * for connection strings, but not frequently used */ var name = "Chen"; Name.concat (// Chen_qi_feng
String.IndexOf (searchstring,postion);
Finds a string searchstring, or returns 1 if it finds a position that returns the first matching character.
Optional parameter postion, which you can specify to start a search from a location in string.
var text = "Mississippi"; var // 2 = Text.indexof ("ss", 3); // 5 = Text.indexof ("ss", 6); // -1
String.LastIndexOf (searchstring,postion);
Similar to indexOf, except to find it from the end
var text = ' Mississippi '; var // 5 = text.lastindexof (' ss ', 3); // 2 = text.lastindexof (' ss ', 6); // 5
After learning regular expressions, go back and record
Summary of common methods for JavaScript string