ES6 rest parameter

rest,查百度词典,释义为 [rest] n. 休息; 剩余部分; 支持物; 宁静,安宁,rest paramter直译过来就是剩余参数,也能够叫可变参数;它用来收集多个参数到一个collection中,是标准的数组类型,也就意味着它能够调用Array的全部方法;web function f1(arg1,arg2,...restArgArr){ console.log("arg1:%s,ar
相关文章
相关标签/搜索