函数属性

function foo(a,b,c){

arguments.length//2    传进来的参数的个数 arguments只能获取和修改传入的参数的值,如果没有传入参数则失去绑定关系  在严格模式下参数的值都不能修改

arguments[1]=10;

arguments[1]=======10

arguments[2]=100;

arguments[2]//undifined   未传参数失去绑定关系

}

foo(1,2)

foo.name ======foo函数的名称

foo.length======foo函数形参的个数

arguments.length=====实参的个数

原文地址:https://www.cnblogs.com/xiaofenguo/p/7064351.html