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  高家三少爷  阅读(117)  评论(0)    收藏  举报