var x = 3;
var foo = {
x: 2,
baz: {
x: 1,
bar: function() {
return this.x;
}
}
}
var go = foo.baz.bar;
console.log(go());//3 相当于window.go();
console.log(foo.baz.bar());//1 this老是指向挪用对象的