var str = 'lQT,hello,world,123 6'; console.log(str.split(/,|,|\s+/)); 转载于:https://my.oschina.net/u/3507508/blog/909824