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

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