Question: What is the value of foo.x?
var foo = {n: 1};
var bar = foo;
foo.x = foo = {n: 2};
foo.x//undefined
这过程之怎样的?
相关分类