//1: var b= a.join(',') console.log(b) console.log( typeof b) //2: var c = a.toString(); //把数组转换为字符串 console.log(c) console.log(typeof c); //返回字符串string,说明是字符串类型
//3: var d = a.join(); //把数组转换为字符串 console.log(d) console.log(typeof d); //返回字符串string,说明是字符串类型
//4: var e = a.toLocaleString(); //把数组转换为字符串 console.log(e) console.log(typeof e); //返回字符串string,说明是字符串类型