$(‘#department input[name=mycheck]‘).prop(‘checked‘, true) #可连续修改 $(‘#department input[name=mycheck]‘).attr(‘checked‘, true) #不可连续修改
prop属性
原文:https://www.cnblogs.com/Fmaj7/p/12394885.html