js 数组转字符串

js 数组转字符串

var mycars = new Array()

mycars[0] = "Saab"

mycars[1] = "Volvo"

mycars[2] = "BMW"

mycars.toString()

//Saab,Volvo,BMW