用js控制单选框或者多选框问题

出现如图问题时,这时不能用attr方法添加checked属性了,改用$( "input" ).prop( "checked", true ),完美解决。

原文地址:https://www.cnblogs.com/duanyue/p/7921451.html