1、What
arguments 是一个类似数组的对象,对应于传递给函数的参数。
2、How
⑴语法
arguments
描述:arguments对象是所有函数中可用的局部变量。可用arguments对象在函数中引用函数的参数。
arguments不是array,它类似于数组,但除了长度外没有其他数组属性。
可被转为数组: let args = Array.prototype.slice.call(arguments);
⑵实例
//www.greatytc.com/writer#/notebooks/8811173/notes/10592424
https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Functions/arguments