摘要: var x = 3;var foo = { x: 2, baz: { x: 1, bar: function() { return this.x; } }}var go = foo.baz.bar;alert(go()); //3alert(foo.baz.bar()); //1var x = 4, obj = { x: 3, bar: function() { var x = 2; ... 阅读全文
posted @ 2014-03-07 15:04 Western Journey 阅读(186) 评论(0) 推荐(0) 编辑