for给元素绑定onclick时发生的闭包问题

在这里插入图片描述
i到5,才执行函数,越界了
将函数里面的arrDivNew4[i]改成this

猜你喜欢

转载自blog.csdn.net/weixin_48727085/article/details/107890060
今日推荐