当前位置: 代码迷 >> Java相关 >> alert的结果!解决方案
  详细解决方案

alert的结果!解决方案

热度:5834   发布时间:2013-02-25 21:45:49.0
alert的结果!
function b(x, y, a) {
arguments[2] = 10;
alert(a);
}
b(1, 2, 3);
如果函数体改成下面,结果又会是什么?
a = 10;alert(arguments[2] );

------解决方案--------------------------------------------------------
一样的吧
a对应arguments[2]
x对应arguments[0]
y对应arguments[1]
------解决方案--------------------------------------------------------
arguments就是参数数组列表
  相关解决方案