给想要实现功能的type为checkbox的input 加 class=“checkElement”
<script>
var checkElement = document.getElementsByClassName('checkElement');
for(var i in checkElement)
{
checkElement[i].onclick=checkBack;
}
给想要实现功能的type为checkbox的input 加 class=“checkElement”
<script>
var checkElement = document.getElementsByClassName('checkElement');
for(var i in checkElement)
{
checkElement[i].onclick=checkBack;
}