摘要: 最近遇到一道考察this的面试题,结果是四分之三回答错了,本来对this的了解还是比较清楚的,一下子就被弄蒙了。代码如下:var x = 10;var foo = { x : 20, bar : function(){ var x = 30; console.log(... 阅读全文
posted @ 2014-05-21 12:48 outside 阅读(1664) 评论(0) 推荐(0)