string.split()--分割
?
?? -----把字符串分割成字符串数组。
?3、当separator为正则的时候,部分系统输出的数组是禁止空字符串的?var str = '|a|b|c|';console.log(str.split('|')); //["", "a", "b", "c", ""]
3、当separator为正则的时候,部分系统输出的数组是禁止空字符串的
var str = '|a|b|c|';console.log(str.split('|')); //["", "a", "b", "c", ""]