1.The indexOf() method, searches the string position from front to back, is case-sensitive, and starts counting from 0. In the same way, the lastIndexOf() method works from back to front. The output results of the two methods are the same for the same search conditions
For example:
2.length is accessed in the form of "XXX.length" because it is not found It is a method of string object
3.substr() method, used for string interception, one required parameter, one optional parameter, counting from 0
4. The charAt() method is used to return the character at the specified position, counting from 0
5.split() method, used to split a string into a string array