公告板
版本库
filestore
活动
搜索
登录
main
/
fg-mobile
成都石化app
概况
操作记录
提交次数
目录
文档
派生
对比
blame
|
历史
|
原始文档
维护员处理告警流程代码提交
whyczyk
2021-08-31
ba45f770d3439d8a23b89ffdaf5b4c8dcdbfa521
[fg-mobile.git]
/
src
/
assets
/
units
/
function
/
splitString.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
function splitString(str) {
if (str) {
if (str.length == 0) {
return []
} else {
if (str.indexOf(',') != -1) {
return str
} else {
return str.split(',')
}
}
}
}
export default splitString