js中FOR循环的陷阱

//闭包解决 循环输出的问题

for(var i=0;i<rows.length;i++)
{( function (i) {
})(i);

原文地址:https://www.cnblogs.com/benpaodexiaopangzi/p/6369603.html