方法一:使用数组的join()方法
const array = [1, 2, 3, 4, 5];
const string = array.join('');
console.log(string); // 输出:12345

方法二:使用ES6的展开运算符(spread operator)和字符串模板
const array = [1, 2, 3, 4, 5];
const string = [...array].join('');
console.log(string); // 输出:12345

方法三:使用reduce()方法
const array = [1, 2, 3, 4, 5];
const string = array.reduce((acc, curr) => acc + curr.toString(), '');
console.log(string); // 输出:12345

方法四:使用for循环遍历数组并拼接字符串
const array = [1, 2, 3, 4, 5];
let string = '';
for (let i = 0; i < array.length; i++) {
  string += array[i].toString();
}
console.log(string); // 输出:12345