对空字符串使用split()对空字符串使用split,将产生一个0下标值为空的数组 let str = ''; let arr = str.split(','); console.log(arr); // [""]