日常开发记录-arguments

arguments可以打印此函数中传入的所有参数值

function test(name, age) {
    console.log(...arguments) //关键字
}
test("yiyi", 24)

 

posted on 2022-06-18 20:55  法老的微笑  阅读(28)  评论(0)    收藏  举报