js 字符串转数组

var str = "a,b,c";
var arr = str.split(",");
consle.log(arr); //["a","b","c"]