function: Split ()
Function: To store a string partition into an array using a specified delimiter
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 separator 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, for example, to get "Minidx" from "minidxsearchengine" to use SUBSTRING (0,6)
function: indexOf ()
Function: Returns the subscript of the first character in a string that matches a substring
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