js以逗号分隔的字符串怎么转化为数组

533 阅读1分钟

var str = "aaa,bbb,ccc"; var arr = str.split(',');