【JS】空格、换行符、逗号分隔符正则表达式
今日份代码如下:
var temp = "一条狗的自白 \n Conf,ess,i,ons of a dog";
var arr = temp.split(/[\n\s+,]/g);
console.log(arr);
效果如下:

今日份代码如下:
var temp = "一条狗的自白 \n Conf,ess,i,ons of a dog";
var arr = temp.split(/[\n\s+,]/g);
console.log(arr);
效果如下:
