Split takes a string and splits it into multiple parts, stored in an array.
split接受一个字符串并将其分成若干部分,再存入数组。
The split method then returns an array holding the strings that resulted from separating the given string into substrings, as delimited by the space character.
然后,split方法返回一个数组,其中保存了根据空格字符将给定字符串分割成子字符串的结果。
The name and the phone number are concatenated into a single string and then split into an array of two strings.
姓名和电话号码被连接为一个字符串,然后分割为含两个字符串的数组。
应用推荐