split正则匹配逗号 回车 换行 空格 转为数组 并去空 lison 2021-03-29 1,137 阅读1分钟 e.target.value.split(/[\n\s+,]/g).filter((item:any) => { return item;})