模拟实现块级作用域 由于匿名函数执行完一遍后,内部没有引用其变量对象的函数,其变量对象被清除,后面则引用不到其中的变量 (function(){ var a = 1; console.log( a ); // 1 })() console.log(a); // a is not defined