参考: http://www.biweb.cn/blog/detail.php/id-21.html
通过
$().attr(
"checked",
true);
$().removeAttr(
"checked");
更改checkbox的属性时,仅仅第一遍有效果(第一次全选,第一次取消权限),后面就没效果了
但是查看代码是没问题的
更改为:
$().prop(
"checked",
true);
$().removeAttr(
"checked");
可以解决
转载请注明原文地址: https://ju.6miu.com/read-672600.html