此段代码实现了在if语句中实现块级做用域作用域
if(true){io
(function (){console
var a = 1;function
})();co
}
console.log(a);// a is not defined