$("input[type='checkbox'][name='resId']:checked").each(function(){ alert($(this).val()); }); $("input[type='checkbox'][name='resId']:checked").each(function(){ resIds = resIds + $(this).val() + ","; }); type 为checkbox name 为resId 状态为 选中的复选框的值 相关文章: 2022-12-23 2021-11-28 2021-08-14 2022-02-27 2021-11-28 2022-01-21 2021-10-13