<script>
function info(v1,...data){
console.log(v1,data);
}
info(11);
info(11,22);
info(11,22,333,444,55);
</script>
<script>
function info(v1,v2,v3,v4){
console.log(v1,v2,v3,v4);
}
info(11,22,333,444);
nums = [22,33,44,55,66,77,88];
info(11,...nums)
</script>
标签:info,11,console,22,333,v1,参数,动态
From: https://www.cnblogs.com/sherwin1995/p/16889580.html