遍历的元素绑定点击事件,class属性无效
发布于 6 年前 作者 luoyang 14191 次浏览 来自 问答

如果是 Bug:

* 类似选项卡效果

*for循环里面嵌套for循环,点击事件在里面的for循环,使用阻止冒泡事件,导致class属性无效

* Demo自己测试

回到顶部