//废话不说直接上代码$("#").click(function(){ $("#content-div label input[type='checkbox']").each(function(){ $(this).prop("checked",!$(this).is(":checked")); }); });