arguments代表的是实参.有个讲究的地方是:arguments只在函数中使用. (1)返回函数实参的个数:arguments.length 例子: fn(2,4); fn(2,4,6); fn(2,4,6,8); function fn(a,b,c) { console.log(arguments); //获取具体的实际参数 console.log(fn.length); //获取形参的个数 console.log(arguments.length); //获取实参的个数 console.…