迷惘的小白菜
这个其实不用改js,你只要去css里面把.on这个类样式的优先级调高就可以了。你可以直接加!important,比如
.on {
background-color: lightblue!important;
}
qq_美丽的曲线_03762593
有布局的源代码吗?
奋斗中的小哥
也可以写个计数器count。每次选中一个单选框,则count++,当count ===tr.length,则设置全选当checked为true.
Thinker_Ac
大地223504
石之砂
jeanneze