<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
<script>
/* toString() 将数组转换为字符串
参数 : 无
返回值是转换后的内容
原有数组不变
join() 将数组转换为字符串
参数是链接符
返回值: 装换后的内容
原有数组不变
*
*
* */
var arr=[1,2,3,4,5,67,];
console.log(arr.toString());
console.log(arr.join());
console.log(arr.join(''));
console.log(arr.join('+'));
</script>
</html>
1,2,3,4,5,67
10.数组转换为字符串.html?_ijt=qu7ne17vhskq22q01kpedeo237:32 1,2,3,4,5,67
10.数组转换为字符串.html?_ijt=qu7ne17vhskq22q01kpedeo237:33 1234567
10.数组转换为字符串.html?_ijt=qu7ne17vhskq22q01kpedeo237:34 1+2+3+4+5+67
// 数组求和
var arr=[1,2,3,4,5,67,];
console.log(eval(arr.join('+')));