split正则匹配逗号 回车 换行 空格 转为数组 并去空

1,137 阅读1分钟

e.target.value.split(/[\n\s+,]/g).filter((item:any) => { return item;})