循环引用中的闭包

for(var i=0;i<2;i++){
(function(index){
alert(index)
})(i)
}

posted on 2018-05-30 15:38  sishuiruoshan  阅读(109)  评论(0编辑  收藏  举报

导航