摘要: 曾经看到过这样一段有意思的程序:var a=3;function scopeTest(){ console.log(a); var a=2; console.log(a);}scopeTest();在控制台上打印结果为:undefined2对于第一次输出的undefined感觉到奇怪。在查了一... 阅读全文
posted @ 2014-11-05 10:25 灵瞳 阅读(325) 评论(1) 推荐(0) 编辑