【教程】layui设置checkbox选中

开始使用的attr,但是只能设置成true,不能修改为false,改成prop后就正常了

$('#etxt6').prop("checked", data.passed=='1'?true:false);
form.render('checkbox');


猜你喜欢

转载自blog.csdn.net/hifhf/article/details/107311567