1.map ()
Description
Instance:
2.forEach ()
Description
Instance:
3.split ()
Description
Instance:
4.slice ()
Description
The first parameter represents the start position, the second parameter represents the next position of the end position, the length of the truncated string is the difference between the second parameter and the first parameter, and if the value of the parameter is negative, the value is added to a positive number after the string length, or an empty string if the first argument equals greater than the second argument.
Instance:
5.substring ()
Description
The first parameter represents the start position, the second parameter represents the next position of the end position, and if the value of the parameter is negative, the value is converted to 0, and the two parameter takes a smaller value as the starting position, and the length of the truncated string is the difference between the larger value and the smaller value.
Instance:
6.substr ()
Description
The first parameter represents the start position, and the second parameter represents the length of the Intercept
Instance:
Array traversal Map/foreach and string cut split