arguments可以打印此函数中传入的所有参数值 function test(name, age) { console.log(...arguments) //关键字 } test("yiyi", 24)