在此演示应用程序中,我们将使用它把字符串对象分割为StringArray。
In this demo, we use it to cut a string object to StringArray.
但是,您可以把字符串分割为单词:[“Quick ”,“brown ”,“fox ”]。
But a string could be split into different words: [" Quick ", "brown", "fox"].
定界符:一个字符或者字符串,用来确定字符分割时候的分界。
A character or string used to indicate where a string should be split.
注意:分割符不可以是空字符串。
注意:分割符不可以是空字符串。
应用推荐