SplitString 分隔字符串为数组 
把字符串按照指定规则分隔为数组。
基本使用 
uni.$c.splitString(str,pattern)
js
splitString('fred, barney, & pebbles')
// => ['fred', 'barney', 'pebbles']
splitString('fred, barney, & pebbles', /[^, ]+/g)
// => ['fred', 'barney', '&', 'pebbles']1
2
3
4
5
2
3
4
5
参数说明 
| 参数名 | 类型 | 说明 | 
|---|---|---|
| str | String | 待分隔的字符串 | 
| pattern | RegExp|string | 分隔规则 | 
