Definition and Usage
定义与用法
The split() method is used to split a string into an array of strings.
split()方法用于将一个字符串分解成一个数组对象。
Syntax
语法
stringObject.split(separator, howmany)
Parameter
参数
Description
注释
separator
分隔符
Required. Specifies the character, regular expression, or substring that is used to determine where to split the string
必选项。指定的字符,字符串或正则表达式,作为分解用的分隔符
howmany