方法:
1.数组转换为字符串
var arr = [1, 2, 3] console.log(arr.toString());
2.join('分隔符')
// join('分隔符') var arr = ['green', 'blue', 'pink'] console.log(arr.join('-')); // 或者 console.log(arr.join('&'));