用 IIFE 封闭
****
for (var h = 0; h < 31; h++) { (function(h) { $.getJSON('http://google.com/', function(data) {...... console.log('line ' + h); }) })(h)};这样的话,价值
h将被保留,该次迭代的而不是将其设置为时间的最后一个值
getJSON被称为回

用 IIFE 封闭
****
for (var h = 0; h < 31; h++) { (function(h) { $.getJSON('http://google.com/', function(data) {...... console.log('line ' + h); }) })(h)};这样的话,价值
h将被保留,该次迭代的而不是将其设置为时间的最后一个值
getJSON被称为回