js中FOR循环的陷阱

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

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

posted @ 2017-02-06 11:13  会奔跑的胖子  阅读(390)  评论(0编辑  收藏  举报