我是JS中"就近声明"以及"允许多次var声明"的拥护者。 我持这样观点源自我对易读性的追求。 看一段代码: function aFunc() { for(var i = 0; i < 100; i++) { doSth(i);