正如@slappy 所说,您可以将参数作为数组获取function add(...numbers){ // Values reach as array console.log(numbers) // Here you should use array inner functions return numbers.reduce((sum,value) => sum+value, 0)}let data = add(5,6,7);console.log(data)