Function: Split ()
Function: Use a specified delimiter to store a string into an array
Example:
Str= "Jpg|bmp|gif|ico|png";
Arr=thestring.split ("|");
Arr is an array that contains the character values "JPG", "BMP", "GIF", "ico", and "PNG"
Function: John ()
Function: Merges an array into a string using the delimiter of your choice
Example:
var delimitedstring=myarray.join (delimiter);
var mylist=new Array ("JPG", "BMP", "GIF", "ico", "PNG");
var portablelist=mylist.join ("|");
The result is jpg|bmp|gif|ico|png.
Function: substring ()
Function: string interception, such as want to get "minidx" from "minidxsearchengine" will use SUBSTRING (0,6)
Function: IndexOf ()
Function: Returns the subscript of the first character of a matched substring in a string
var mystring= "JavaScript";
var w=mystring.indexof ("V"); W'll be 2
var x=mystring.indexof ("S"); X would be 4
var y=mystring.indexof ("Script"); y'll also be 4
var z=mystring.indexof ("key"); Z'll be-1