伪数组

 1 <script>
 2 
 3   fn(1,2,3,4,5);
 4     function fn(a,b){
 5         //只在函数中使用,实参的数组。
 6         arguments[0] = 0;//只能在函数内部使用
 7         arguments[1] = 1;//只能在函数内部使用
 8         arguments[2] = 2;//只能在函数内部使用
 9         arguments[3] = 3;//只能在函数内部使用
10         console.log( typeof arguments);//object
11         //伪数组:不能修改长短的数组。(可以修改元素,但是不能变长变短)
12 //        arguments.push(1);
13         console.log(arguments instanceof Array);
14 
15 //        //形参个数
16         console.log(fn.length);
17 //        //实参个数
18         console.log(arguments.length);
19 
20         //arguments.callee整个函数。函数名。
21         console.log(arguments.callee);
22 
23 //arguments只在函数内部使用,实参的数组,只对实参有效
24 }
25 </script>
原文地址:https://www.cnblogs.com/my12-28/p/11739868.html