let arr1 = [1, -2, 3, 4];
let arr2 = [8, 3, -8, 1];
function fun()
{
console.log(arguments)
}
const fun1 = (...n) =>{
console.log(n)
}
fun.call(...arr1, ...arr2)
输出:[对象参数] { 0: -2, 1: 3, 2: 4, 3: 8, 4: 3, 5: -8, 6: 1 }
fun1.call(...arr1,...arr2)
输出:[-2, 3, 4, 8, 3, -8, 1]
arr1 和 arr2 组合有 8 个值,但输出只有 7 个值,为什么?如何获取所有值?