例如:一个字符串:“teacher,student,name,age,wangming,liming,xiaohong”如何将上面字符串放入一个字符数组中,逗号为分界点。 var str[] var
cher,student,name,age,wangming,liming,xiaohong"str=stra.split(",")
var myArray = new Array(3);
var arr = ['1','2','3'];
百度一下