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
JS Intercept string