JS参考大全读书笔记

来源:互联网 发布:微盘涨跌根据什么数据 编辑:程序博客网 时间:2024/04/30 22:29
8.2
function f(x) {
    print(x);             // Displays the initial value of the argument
    arguments[0] = null;  // Changing the array element also changes x!
    print(x);             // Now displays "null"
}

This is emphatically not the behavior you would see if the Arguments object were an ordinary array. In that case,
arguments[0] and x could refer initially to the same value, but a change to one reference would have no effect on 
the other reference.
according to this ,i did some job for check it,but i was failed.