//点击左边全选选中时,都全选$('.goods_tag_ids_all').on('click',function(){ if($('.goods_tag_ids_all').is(':checked')){ var elements = $('.goods_tag_ids'); for(var i=0; i<elements.length; i++){ if(elements[i].type == 'checkbox'){ if(elements[i].checked==false){ el
参考链接:https://stackoverflow.com/questions/10650233/checked-checked-vs-checked-true 问: What is the difference between the below two usages? document.getElementById('myRadio').checked = "checked"; and document.getElementById('myRadio').checked = tr