1.join (separator): Converts an array into a separator-delimited string
2.split (separator): Use a specified delimiter (separator) to store a string in an array
3.indexof (): Returns the subscript of the first character of a matched substring in a string
4.substring ():: String intercept
Precautions:
1. If you use "." As a separate word, it must be written as follows: String.Split ("\ \"), in order to properly separate, can not be used String.Split (".");
2. If you use "|" As a separate word, it must be written as follows: String.Split ("\\|"), so as to properly separate, can not be used String.Split ("|");
3, if the "\" as a separate words, must be the following wording: String.Split (\\\), so that the correct separation, can not be used String.Split ("\");
".", "|" and "\" are both escape characters, must be added "\ \";
4. If you have more than one delimiter in a string, you can use the ' | ' As a hyphen, for example: "Acount=?" and UU =? Or n=? ", the three are separated out, you can use String.Split (" And|or ");
JS in Split (), indexof (). substring (), join () method summary