es6剩余参数

function show(a,b,...args){
        console.log(a)
        console.log(b)
        console.log(args)
    }
    show(10,20,30,30,36)

 

posted @ 2019-04-06 23:00  努力的小高  阅读(110)  评论(0编辑  收藏  举报