摘要: 转载自:http://openwares.net/js/javascript_declaration_hoisting.html javascript的变量声明具有hoisting机制,JavaScript引擎在执行的时候,会把所有变量的声明都提升到当前作用域的最前面。 先看一段代码 1 2 3 4 阅读全文
posted @ 2017-04-18 10:20 jolee 阅读(137) 评论(0) 推荐(0) 编辑