用$(this).attr(“checked”,true)有时候html中是checked的,但是页面并未勾选。
可以使用$(this).prop(“checked”,true)方法,但是jquery的版本不能太低。
jquery复选框的相关问题
最新推荐文章于 2021-05-01 09:41:14 发布
用$(this).attr(“checked”,true)有时候html中是checked的,但是页面并未勾选。
可以使用$(this).prop(“checked”,true)方法,但是jquery的版本不能太低。