length 是函数对象的一个属性值,指该函数有多少个必须要传入的参数,那些已定义了默认值的参数不算在内,比如function(xx = 0)的length是0。.
另外在函数内部:arguments.length 是函数被调用时实际传参的个数。